Functions

exp

Supported By

Syntax

[the] exp of factor

exp ( expression )

Factor and expression yield integers, numbers, or complexes.

Example

put the exp of 2 -- yields 7.389056

Description

The exp function returns the mathematical exponential of its argument, defined as the constant e, which is approximately 2.7182818284, raised to the power specified by the argument. That is, it returns:

euler^number

The exp function is faster and more accurate than using the above formula.

If the argument is an integer or a number, a number is returned. If the argument is a complex, a complex is returned.

See Also

exp1, exp2, exp10, ln, ln1, log2, log10, log