Reference Manual

PMAC 2 Software Reference
366 PMAC Mathematical Features
COS
Function
Trigonometric cosine
Syntax
COS({expression})
Domain
All real numbers
Domain units
Radians/degrees
Range
-1.0 to +1.0
Range units
none
Remarks
COS implements the trigonometric cosine function of the mathematical expression
contained inside the following parentheses.
This function interprets its argument in degrees if I15 is set to the default value of 0; it
interprets its argument in radians if I15 is set to 1.
Example
P60=COS(30) ; Computes cosine of 30
X(Q80*COS(Q81)) ; Move X axis to calculated value
EXP
Function
Exponentiation (e
x
)
Syntax
EXP({expression})
Domain
All real numbers
Domain units
User-determined
Range
Positive real numbers
Range units
User-determined
Remarks
EXP implements the standard exponentiation function of the mathematical expression
contained inside the following parentheses, raising ā€œeā€ to the power of this expression.
To implement the y
x
function, use e
x ln(y)
instead.
Example
P20=EXP(P19) ; Raises e to the power of P19
P3=EXP(P2*LN(P1)) ; Raises P1 to the power of P2
INT
Function
Truncation to integer
Syntax
INT({expression})
Domain
All real numbers
Domain units
User-determined
Range
All integers
Range units
User-determined
Remarks
INT implements the truncation to integer function of the mathematical expression
contained inside the following parentheses. The truncation is always done in the
negative direction.
Note that while the result is an integer number, it is still represented as a floating-point
value.