Zalgorithm

Understanding Euler's number

This is not a math tutorial. See Why am I writing about math?

Euler’s number (e ~= 2.718), possible definitions:

Based on the last definition in that list, I took a stab at defining e as “analog growth as opposed to digital or sampled growth”. (See the analog vs sampled section below.)

The compound interest formula #

A=P(1+rn)nt A = P(1 + \frac{r}{n})^{nt}

Where:

Here’s a demonstration using the above formula that shows how e is what you get when you push compound growth to its absolute limit:

In [15]: P = 1
In [16]: r = 1
In [17]: n = 12

In [18]: P * (1 + (r/n))**n
Out[18]: 2.613035290224676

In [19]: n = 24

In [20]: P * (1 + (r/n))**n
Out[20]: 2.663731258068599

In [21]: n = 365

In [22]: P * (1 + (r/n))**n
Out[22]: 2.7145674820219727

In [23]: n = 3650

In [24]: P * (1 + (r/n))**n
Out[24]: 2.717909554576972

In [25]: n = 100000

In [26]: P * (1 + (r/n))**n
Out[26]: 2.7182682371922975 # approaching e

The mathematical definition of e #

e=lim(ninf)(1+1n)n e = \lim(n \rightarrow \inf)(1 + \frac{1}{n})^n

Euler’s number as a representation of analog growth (speculative) #

In the Python demo above, each value of n is like a different sampling rate for growth:

With this conception, the compound interest formula (1 + 1/n)^n is like a digital sampling of continuous growth. (maybe?)

Where natural growth occurs #

The key is that these processes aren’t scheduled in the way that interest payments are.

Euler’s number in calculus #

From Claude: when you see e^x in an equation, read it as “starting from 1, what do you get after x units of continuous growth?” When x = 1, you get e, when x = 2 you get e^2