Exp Function | |
Calculate the numeric value of a natural logarithm.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax FUNCTION Exp(
nExponent AS USUAL
) AS FLOAT
public static Float Exp(
Usual nExponent
)
Request Example
View SourceParameters
- 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:
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():
1? Exp(1)
2SetDecimal(10)
3? Exp(1)
4? Log(Exp(1))
See Also