IMath.TanH

Fore Syntax

TanH(Angle: Double): Double;

Fore.NET Syntax

TanH(Angle: double): double;

Parameters

Angle. A real number, which hyperbolic tangent must be found.

Description

The TanH method returns hyperbolic tangent of the specified number.

Comments

Parameter value cannot be empty.

To get reverse hyperbolic tangent, use the IMath.ATanH method.

Fore Example

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

Sub UserProc;
Var
    r: Double;
Begin
    r := Math.TanH(-2);
    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the hyperbolic tangent equal to -0.964027580075817.

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

See also:

IMath