Sin Function | |
Calculate the sine of a number.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax FUNCTION Sin(
nNum AS USUAL
) AS FLOAT
public static Float Sin(
Usual nNum
)
Request Example
View SourceParameters
- nNum
- Type: Usual
An angle in radians.
Return Value
Type:
Float
The sine of the specified angle.
Remarks Examples
This example uses Sin() to calculate the sine of 2.7:
This example finds the sine of a 60 degree angle.
The first step is to convert 60 degrees to radians. This is done by dividing the angle by 180/PI:
See Also