E, base of the natural logarithm


tex_b0ae8ac94ba8dcb947494ecd8411ed90 E, base of the natural logarithm, the base of the natural logarithm (e.g. tex_1e834a4784d958242c84da9213d86769 E, base of the natural logarithm) can be expressed as the following equation:

tex_5424f0bf14ebfbfc051e7296c145577c E, base of the natural logarithm

The Euler’s formula involves tex_b0ae8ac94ba8dcb947494ecd8411ed90 E, base of the natural logarithm, which is:

tex_aab25b6a1ba74cbb228ed7b93f0bddf6 E, base of the natural logarithm

The Euler’s Identity is the special case when tex_e8b4fd043e2972e5d165a5bc42ada72d E, base of the natural logarithm,

tex_fd1526bbfa049b2bbf544d70aa3e0bf9 E, base of the natural logarithm

The tex_b0ae8ac94ba8dcb947494ecd8411ed90 E, base of the natural logarithm constant coincides in many interesting problems. For example, the average number to add random numbers (tex_0875d07748fbbbe4f4ac3e8f674017fa E, base of the natural logarithm) in order to obtain a sum larger than one can be obtained by the following Python code by brute-force over a few iterations.

#!/usr/bin/env python
from random import random, seed
from math import e

maxn = 100
seed()
s = 0
for i in range(maxn):
    ss = 0
    j = 0
    while ss < 1:
        j += 1
        ss += random()
    s += j

ee = s * 1.0 / maxn
print "%.6f" % ee
print e, abs(e - ee)

The 100 iterations give us an approximate value of tex_b0ae8ac94ba8dcb947494ecd8411ed90 E, base of the natural logarithm, which is 2.75 (with error = 0.0317).

2.750000
2.71828182846 0.031718171541

If we increase the iterations to 1000000,

Surprisingly, the output is the following.

2.718216
2.71828182846 6.58284590451e-05

We can see that if we keep increasing the iterations, the absolute error to tex_b0ae8ac94ba8dcb947494ecd8411ed90 E, base of the natural logarithm will be improved. And if maxn reaches tex_5660ba3d9abce8f28252e1b7ac3608b6 E, base of the natural logarithm, the tex_f12ef661983f8a61f0edcac85366130f E, base of the natural logarithm will be equal to tex_b0ae8ac94ba8dcb947494ecd8411ed90 E, base of the natural logarithm. Anybody can explain this in mathematics?

See also: Simple and Efficient C Program to Compute the Mathematic Constant E (Euler’s number)

–EOF (The Ultimate Computing & Technology Blog) —

701 words
Last Post: Codeforces: A. Almost Prime
Next Post: One Simple Equation to Compute e, base of the natural logarithm

The Permanent URL is: E, base of the natural logarithm (AMP Version)

Leave a Reply