Reference Manual
PMAC 2 Software Reference
364 PMAC Mathematical Features
ACOS
Function
Trigonometric arc-cosine
Syntax
ACOS({expression})
Domain
-1.0 to +1.0
Domain units
none
Range
0 to Pi radians (0 to 180 degrees)
Range units
Radians/degrees
Remarks
ACOS implements the inverse cosine, or arc-cosine function of the mathematical
expression contained inside the following parentheses.
This function returns values in degrees if I15 is set to the default value of 0; it returns
values in radians if I15 is set to 1.
If the argument inside the parentheses is outside of the legal domain of –1.0 to +1.0, an
arbitrary value will be returned. No error will be reported, and the program will not
stop. It is the programmer’s responsibility to check for possible domain errors.
Example
P50=ACOS(P48/P49) ; Computes angle whose cos is P48/P49
C(ACOS(Q70/10)) ; Move C axis to specified angle
ASIN
Function
Trigonometric arc-sine
Syntax
ASIN({expression})
Domain
-1.0 to +1.0
Domain units
none
Range
0 to Pi radians (0 to 180 degrees)
Range units
Radians/degrees
Remarks
ASIN implements the inverse sine, or arc-sine function of the mathematical expression
contained inside the following parentheses.
This function returns values in degrees if I15 is set to the default value of 0; it returns
values in radians if I15 is set to 1.
If the argument inside the parentheses is outside of the legal domain of –1.0 to +1.0, an
arbitrary value will be returned. No error will be reported, and the program will not
stop. It is the programmer’s responsibility to check for possible domain errors.
Example
P50=ASIN(P48/P49) ; Computes angle whose sin is P48/P49
C(ASIN(Q70/10)) ; Move C axis to specified angle
ATAN
Function
Trigonometric arc-tangent
Syntax
ATAN({expression})
Domain
All real numbers
Domain units
none
Range
-Pi/2 to +Pi/2 radians (-90 to +90 degrees)
Range units
Radians/degrees