Click or drag to resize

Exp Function

Calculate the numeric value of a natural logarithm.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.08
Syntax
 FUNCTION Exp(
	nExponent AS USUAL
) AS FLOAT
View Source

Parameters

nExponent
Type: Usual
The power to which e is to be raised.

Return Value

Type: Float
A floating point number that is equivalent to the value e raised to <nExponent>.
Remarks
Exp() calculates the value y (the antilogarithm) of the following equation:
X#
e^x = y
where e is the base of natural logarithms (2.71828...) and x is <nExponent>. Exp() and Log() are inverse functions.
Examples
This example demonstrates several invocations of Exp():
X#
? Exp(1)                                        // 2.72
SetDecimal(10)
? Exp(1)                                                // 2.7182818285
? Log(Exp(1))                                // 1.0000000000
See Also