Specifications

Section 8. Processing and Math Instructions
8-2
EndIf
Loop
'X is now the cube root of Volt1
NextScan
EndProg
ACOS (Number)
The ACOS function returns the arc cosine of a number.
Syntax
x = ACOS (Number)
Remarks
The number can be any valid numeric expression that has a value between -1
and 1 inclusive.
The ACOS function takes the ratio of two sides of a right triangle and returns
the corresponding angle. The ratio is the length of the side adjacent to the
angle divided by the length of the hypotenuse. The result is expressed in
radians and is in the range -π/2 to π/2 radians.
To convert degrees to radians, multiply degrees by π/180. To convert radians
to degrees, multiply radians by 180/π.
ACOS is the inverse trigonometric function of COS, which takes an angle as
its argument and returns the length ratio of the side adjacent to the angle to the
hypotenuse.
ACOS Function Example
The example uses ACOS to calculate π. By definition, a full circle is 2π
radians. ACOS(0) is π/2 radians (90 degrees).
Public Pi 'Declare variables.
Pi = 2 * ACOS( 0 ) 'Calculate Pi.
AddPrecise (PrecisionVariable, X)
The AddPrecise function allows you to do high precision totalizing of
variables or manipulation of high precision variables.
Syntax
AddPrecise ( PrecisionVariable, X )
Remarks
In this function, the variable X is added to the PrecisionVariable. Every
reference to the PrecisionVariable will cause a 32 bit extension of its mantissa
to be saved and used internally. A normal single precision float has 24 bits of
mantissa; therefore, this new precision is 56 bits. This function can be useful
when trying to find the difference between two high precision variables.
PrecisionVariable The PrecisionVariable is the variable that will be affected by
the precision add.