Cosine (a = b * cos[c])
It calculates the cosine of the angle given as c in degrees, multiplies the result by b, and loads it into variable a. The value of c must be specified in 0.0000 format: 1 degree should be given as 10000, and 30 degrees as 300000.
Example:
(IT CALCULATES THE COSINE OF 60 DEGREES, MULTIPLIES)
(THE RESULT BY 10000, AND LOADS IT INTO VARIABLE #0)
G65 L32 P#0 Q10000 R600000 (#0 WILL BE 5000)
(IT CALCULATES THE COSINE OF THE ANGLE SPECIFIED BY #2)
(MULTIPLIES THE RESULT BY #1, AND LOADS IT INTO VARIABLE #0)
G65 L32 P#0 Q#1 R#2
Example:
(IT CALCULATES THE COSINE OF 60 DEGREES, MULTIPLIES)
(THE RESULT BY 10000, AND LOADS IT INTO VARIABLE #0)
#0 = COS[10000, 600000] (#0 WILL BE 5000)
(IT CALCULATES THE COSINE OF THE ANGLE SPECIFIED BY #2)
(MULTIPLIES THE RESULT BY #1, AND LOADS IT INTO VARIABLE #0)
#0 = COS[#1, #2]
