EXP, EXP2 and EXP10 functions

Purpose

Return a base number raised to a power.  The base is e for EXP, 2 for EXP2, and 10 for EXP10.

Syntax

y = EXP(n)

y = EXP2(n)

y = EXP10(n)

Remarks

EXP returns e to the nth power, where n is a numeric variable or expression and e is the base for natural logarithms, approximately 2.718282.  Among other uses, this provides a simple way to obtain the value of e itself:

e = EXP(1)

EXP2(n) returns 2 to the nth power, where n is a numeric variable or expression.

EXP10(n) returns 10 to the nth power, where n is a numeric variable or expression.

The EXP functions provide a convenient alternative to the ^ operator, which works with any base.  The EXP functions return results in Extended-precision.

See also

LOG, LOG2, LOG10, SQR, Arithmetic Operators