$exp

Return the exponential of X (e X ).

$exp(X)

Parameters

X—numeric value. The result must be in the range 10 -9999 through 10 9999 , which means that X must be in the range (approximately) -23,025.85 through +23,025.85.

Return Values

Exponential value of X.

If an error occurs, $procerror contains a negative value that identifies the exact error.

Values of $procerror Commonly Returned Following $exp and $exp10
Value Error constant Meaning
-1207 <UPROCERR_UNDERFLOW> Underflow.
-1208 <UPROCERR_OVERFLOW> Overflow.

Use

Allowed in all component types.

Description

The function $exp returns the exponential of X, that is, e raised to the power X.

Using $exp

The following example returns the exponential of the given expression:

; is > nth root of n for all positive n

vResult = $exp(1 / e())

Related Topics