IMath.Cos

Fore Syntax

Cos(Value: Double): Double;

Fore.NET Syntax

Cos(Value: double): double;

Parameters

Value. Angle in radians, which cosine must be found.

Description

The Cos method returns a cosine for the specified angle.

Comments

Value of the Value parameter must be set as an end number.

Fore Example

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

Sub UserProc;
Var
    r: Double;
Begin
    r := Math.Cos(1.047);
    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the cosine of the specified angle equal to 0.50017107459707.

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

See also:

IMath