Skip to main content

exp

Function exp 

Source
pub fn exp(x: number) -> number
Expand description

Returns e raised to a power.

§Parameters

  • x: a number.

§Return value

The value eˣ, as a float, where e is the base of natural logarithms.

§Examples

print(math.exp(0))    --> 1.0
print(math.exp(1))    --> 2.718281828459045

§See also

log