Exp(Value: Double): Double;
Exp(Value: double): double;
Value. Power exponent used to raise the Euler number.
The Exp method returns the Euler number raised to the specified power.
Parameter value cannot be empty.
To get natural logarithm, use the IMath.Ln method.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Begin
r := Math.Exp(2);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays result of raising the Euler number to the specified power equal to 7.38905609893065.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.MathFin;
…
Public Shared Sub Main(Params: StartParams);
Var
r: double;
Math: MathClass = New MathClass();
Begin
r := Math.Exp(2);
System.Diagnostics.Debug.WriteLine(r);
End Sub;
See also: