exp

To calculate the natural exponential function

The function calculates the exponential function of a number based on Euler's number and is therefore called the natural exponential function.

Syntax

exp(number)

Return

number

Examples

exp(x) To calculate the power to the base e (e is the Euler's number) with a number x as an exponent.

exp(1) 

Result: 2.718281828459045 (the Euler’s number)

exp(0) 

Result: 1

exp(5 - 2)

Result: 20.085536923187668

See also

ln, which calculates the natural logarithm of a number.

Last updated