Sin(Value: Double): Double;
Sin(Value: double): double;
Value. The angle in radians, which sine must be found.
The Sin method returns the sine of the specified angle.
The Value parameter value cannot be empty and must be set as an end number.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Begin
r := Math.Sin(Math.Pi/2);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays the sine of the specified angle equal to 1.
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.Sin(Math.Pi/2);
System.Diagnostics.Debug.WriteLine(r);
End Sub;
See also: