Skip to content

Instantly share code, notes, and snippets.

@gilrg18
Created April 9, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilrg18/ee1731819389acfa8096 to your computer and use it in GitHub Desktop.
Save gilrg18/ee1731819389acfa8096 to your computer and use it in GitHub Desktop.
WSQ14
#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