WSQ12 – Estimating e

e flickr photo by gail m tang shared under a Creative Commons (BY-NC-SA) license

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).

What to Submit

As usual, create a blog post explaining what you did, where you found resources (books, videos, web pages, friends) to help you solve this. Remember to put the tag #WSQ12 on your post so our blog hub picks that up.

You should include your code as a link to GitHub.

And of course, leave any questions here as well as asking those questions in our Facebook group so we all see your question posted there.

Feature Image Credit

e flickr photo by gail m tang shared under a Creative Commons (BY-NC-SA) license

CC BY-SA 4.0 WSQ12 – Estimating e by Bauer Ken is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.