WSQ12

--Originally published at Dude, Suckin' at something is the first step to being sorta good at something!

I was asked to deploy the number of decimal points of accuracy numerical value for e (2.718281828459045235360) depending on the number of decimal points of accuracy the user asked for. So I first asked the user how many decimal points of accuracy he will wanted then I turned e to a string and started printing the string places up too the number the user typed in.  Thanks chinbrown  for your simple perspective on how to tackle this problem I found your way the best and most simple way of doing it.

THE CODE

WSQ12 CODE

THE PRINTS

WSQ12 SS


#WSQ12 – Estimating e

--Originally published at マルコ

What To Do

In this assignment you will estimate the mathematical constant e. You should create a function called calculuate_e which receives one parameter called precision that should specify the number of decimal points of accuracy.

You will want to use the infinite series to calculate the value, stopping when the accuracy is reached (previous and current calculation are the same at the specified accuracy).

W12.1

W12.2

Featured image:

https://www.pixiv.net/member_illust.php?mode=medium&illust_id=1969853


WSQ12 – Estimating e

--Originally published at Elu's Blog

For this assignment these were my instructions:

In this assignment you will estimate the mathematical constant e. You should create a function called calculuate_e which receives one parameter called precision that should specify the number of decimal points of accuracy.

You will want to use the infinite series to calculate the value, stopping when the accuracy is reached (previous and current calculation are the same at the specified accuracy).

This is what I came up with:

Captura de pantalla 2017-04-20 a la(s) 17.38.54.png

Captura de pantalla 2017-04-20 a la(s) 17.39.12.png