Exp

Description

Raises e to the specified power.

Syntax

Exp ( n )

Argument

Description

n

The power to which you want to raise e (2.71828)

Returns

Double. Returns e raised to the power n. If n is null, Exp returns null.

NoteInverse of Exp The inverse of the Exp function is the Log function.

Examples

Example 1

This statement returns 7.38905609893065.

Exp(2)

Example 2

These statements convert a natural logarithm (base e) back to a regular number. When executed, Exp sets value to 200:

double value, x = log(200)

value = Exp(x)

See also