Feel Euler’s Number e with your programming sense — no equation

STEP = 100
GROWTH = 1
GROWTH_RATE = GROWTH / STEP
e = 1
for i in range(STEP):
e = e + e * GROWTH_RATE
print(e)
https://betterexplained.com/articles/definitions-of-e-colorized/
  1. Calculating compound interest: which we already got some idea
  2. Bernoulli trials (random experiment which has 2 possible outcomes)
  3. Standard normal distribution, with is normal distribution of 0 mean and unit standard deviation
  4. And many more …

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store