The mathExp() function returns e raised to the power of a number, where e is Euler's number, the base of natural logarithms.
mathExp()
0.12.0
A number representing the power to which e is raised
The value of e^x, where e is Euler's number and x is the argument
mathExp(0); // 1mathExp(1); // 2.718281828459045 (approximately e)mathExp(2); // 7.38905609893065 (approximately e^2) Copy
mathExp(0); // 1mathExp(1); // 2.718281828459045 (approximately e)mathExp(2); // 7.38905609893065 (approximately e^2)
Returns e (the base of natural logarithms) raised to a power.
A numeric expression representing the power of e.
The
mathExp()
function returns e raised to the power of a number, where e is Euler's number, the base of natural logarithms.Since
0.12.0
Param: x
A number representing the power to which e is raised
Returns
The value of e^x, where e is Euler's number and x is the argument
Example