SIN
Sine function.
WebVue support - Yes.
Syntax
Dblval = SIN(Angle);
Return type: DOUBLE.
Argument |
Meaning |
Angle |
The angle in degrees of which the sine is to be taken. Any numeric type. |
Execution
Returns the sinus of Angle.
Example
'Variables
'@ARC - type Register
'@ANGLE - type Register
SUB Main()
'Declare variables
DIM dblangle as double;
DIM dblarc as double;
dblangle = 45;
dblarc = SIN (dblangle);
print("SIN(",dblangle,") = ",dblarc);
END SUB
SUB proc2()
'SIN() using a variable: @ARC.
'Register used as type double
@ARC = SIN(@ANGLE);
END SUB