Delta Tau GEO BRICK LV Reference Manual

Page of 760
Turbo PMAC/PMAC2 Software Reference
 
Turbo PMAC Mathematical Features 
 492 
COS 
Function: 
Trigonometric cosine 
Syntax: 
COS({expression}) 
Domain: 
All real numbers 
Domain units: 
Radians/degrees 
Range: 
-1.0 to +1.0 
Range units: 
none 
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.  
Execution time, 80 MHz CPU: 5.6 µsec interpreted, 3.2 µsec compiled 
Examples: 
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 
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.  
Execution time, 80 MHz CPU: 5.6 µsec interpreted, 3.2 µsec compiled 
Examples: 
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 
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.  
Execution time, 80 MHz CPU: 3.3 µsec interpreted, 1.0 µsec compiled