WSQ12 – Estimating e

Here are the instructions:

In this assignment you will estimate the mathematical constant e. You should create a function called calculate_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).

https://docs.python.org/2/library/math.html

Leave a comment