Log(Value: Double; Base: Double): Double;
Log(Value: double; Base: double): double;
Value. Positive real number, for which logarithm is calculated.
Base. Logarithm base.
The Log method returns a logarithm of the number by the specified base.
Values of input parameters cannot be empty.
The Base parameter value must belong to the (0;1) U (1;inf) intervals.
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.
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: