IMath.Exp

Fore Syntax

Exp(Value: Double): Double;

Fore.NET Syntax

Exp(Value: double): double;

Parameters

Value. Power exponent used to raise the Euler number.

Description

The Exp method returns the Euler number raised to the specified power.

Comments

Parameter value cannot be empty.

To get natural logarithm, use the IMath.Ln method.

Fore Example

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.

Fore.NET Example

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:

IMath