Skip to content

Computing e

Oscar Veliz edited this page Jul 4, 2023 · 1 revision

exp(x) explained

The video covering the e-spigot algorithm can be found at https://youtu.be/M_fTdDx8IlY although it mostly focuses on exp(x) and the math the computer uses to compute the exponential. Example code is given in e-spigot.py, written in Python and can be run locally using the command python e-spigot.py.

To change the number of digits alter the n variable at the beginning. Note: For safety, the authors recommend adding 6 to that number.

Reference links: