constants

Certain constants are built into TOPDRAWER. They are: 1. PI - 3.1416... example <2*PI> is 6.2831...

functions

Functions are expressed as: function<expression> The parenthesis around the argument of the function may be omitted if the argument is a number. All functions may be abbreviated. The available functions are: 1. [ARC]SINE - [inverse] Sine of angle in degrees 2. [A]COSINE - [inverse] Cosine of angle in degrees 3. [A]TANGENT - [inverse] Tangent of angle in degrees 4. RADIANS - Converts degrees to radians 5. DEGREES - Converts radians to degrees 6. GAMMA - GAMMA function (GAMMA(n)=(n-1)!) (Cern Library) 7. LOGARITHM - Log to the base 10 8. EXPONENTIAL - Power of e (inverse LN) 9. LN - Logarithm to the base e 10. SQRT - Square root 11. RANDOM - Random number. RAN(0) produces a random number. RAN(n) sets the seed to n and starts a new random number sequence. 12. ABSOLUTE - Absolute value 13. INTEGER - Integer part of a number 14. FRACTION - Fractional part of a number 15. NINTEGER - Nearest integer to a number 16. ERF - Error function (Cern Library) 17. ERFC - Error function (Cern Library) 18. FREQ - Frequency function (Cern Library)

operators

1. + - Add 2. - - Subtract 3. * - Multiply 4. / - Divide 5. ** - Power These follow the same rules of precedence as in FORTRAN. For example: 1. 2*3/4 is the same as (2*3)/4 or 1.5 2. 2*3+4*5 is the same as (2*3)+(4*5) or 26 3. 2**2**3 is the same as 2**(2**3) or 256 4. 2**2*3 is the same as (2**2)*3 or 12 5. -2**2 is the same as -(2**2) or -4 Missing operators in the middle of an expression are assumed to be multiply "*". <2(3)> is the same as <2*(3)>.

filenames

TOPDRAWER will accept either VMS or UNIX style file specifications. Example VMS UNIX [dir.subdir]file /dir/subdir/file [.subdir]file subdir/file [-.subdir]file ../subdir/file

examples

<LOG(V_SUM)> the logarithm of the SUM. <SINE(V_SUM)> or... <SIN(V_SUM)> the sine of the SUM. <ARCSIN(V_SUM)> or... <ASIN(V_SUM)> the arcsine of the SUM. <4 SINE 30) is the number 2. <4(2+3)> is the number 24.