IMath.Log

Fore Syntax

Log(Value: Double; Base: Double): Double;

Fore.NET Syntax

Log(Value: double; Base: double): double;

Parameters

Value. Positive real number, for which logarithm is calculated.

Base. Logarithm base.

Description

The Log method returns a logarithm of the number by the specified base.

Comments

Values of input parameters cannot be empty.

The Base parameter value must belong to the (0;1) U (1;inf) intervals.

Fore Example

To execute the example, add a link to the MathFin system assembly.

Sub UserProc;
Var
    r: Double;
Begin
    r := Math.Log(8,2);
    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the result of logarithm calculation equal to 3.

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.Log(8,2);
    System.Diagnostics.Debug.WriteLine(r);
End Sub;

See also:

IMath