The equation parser acts upon either the AZIMUTH or ELEVATION variables and returns the result. For example, the equation:
(2*ELEVATION-1)/pi
returns the elevation multiplied by 2 and minus 1, divided by pi.
Operators
+ = Add
- = Subtract
/ = Divided By
* = Multiply by
% or mod = Modulus
^ = To the power of
( ) parentheses used for defining operands of functions and operation order
Functions
Common
fix(X) = The difference between Int and Fix is that if
number is negative, Int returns the first negative integer less than or equal to
number, whereas Fix returns the first negative integer greater than or equal to
number. For example, Int converts -8.4 to -9, and Fix converts -8.4 to -8.
int(X) = Integer or whole number portion of X
min(X,Y) returns the lesser of X or Y
max(X,Y) returns the greater of X or Y
Sgn(X) returns an integer depending on the sign of X : -1 for X<0 ; 0 for X=0
; 1 for X>0
Sqr(X) square root of X
Randomization
Rnd(X) non-integer random number <=X
random(X,Y)= (Rnd * (Y - X)) + X
rand(X) = Int(Rnd * X)
Log Functions
log or ln = Log(X) natural log!!! not base 10!
logn(X,Y)= log base Y of X
log10(X) = log base 10
log2(X) = Log base2
exp(X) = e raised to power X - If the value of X exceeds 709.782712893, an error
occurs.
Trigonometric Functions
deg(X) convert radians to degrees
rad(X) convert degrees to radians
atn(X) or arctan(X)
tan(X)
cos(X)
sin(X)
sec(X)
cosec(X)
cotan(X)
arcsin(X)
arccos(X)
arcsec(X)
raccosec(X)
arccotan(X)
sinh(X)
cosh (X)
tanh (X)
sech (X)
cosech (X)
cotanh (X)
arcsinh(X)
arccosh(X)
arctanh(X)
arcsech(X)
arccosech(X)
arccotanh(X)
constants
pi=3.14159...
e = 2.718281828