Created
April 9, 2015 14:03
-
-
Save gilrg18/ee1731819389acfa8096 to your computer and use it in GitHub Desktop.
WSQ14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Gilberto Rogel García wsq14 estimating e | |
def calculate_e(precision): | |
x=precision | |
e=(1+1/x)**x | |
return (e) | |
precision=int(input("Give me the number of decimal points of accuracy that you want: ")) | |
print("The estimate e is: ",calculate_e(precision)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment