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 Slack channel so we all see your question posted there.

Feature Image Credit

<a title="e" href="https://flickr.com/photos/gailtang/2786292212">e</a> flickr photo by <a href="https://flickr.com/people/gailtang">gail m tang</a> shared under a <a href="https://creativecommons.org/licenses/by-nc-sa/2.0/">Creative Commons (BY-NC-SA) license</a> </small>
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.