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