e And Euler

../_images/e_and_euler.png

PHP has two distinct constants: M_E, which stands for the mathematical e exponential constant, and with a value of 2.718281828459.

And the lesser known M_EULER, which stand for the Euler constant. It is used to estimate the number of tests runs to execute when randomly running one of the tests. It is the classic coupon collector problem: E(n) n * ln(n) + γ * n.

See Also

PHP Features