Specifications

Section 8. Processing and Math Instructions
8-4
ASIN (Number)
The ASIN function returns the arc sine of a number.
Syntax
x = ASIN (number)
Remarks
Number can be any valid numeric expression that has a value between -1 and 1
inclusive.
The ASIN function takes the ratio of two sides of a right triangle and returns
the corresponding angle. The ratio is the length of the side opposite 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/π.
ASIN is the inverse trigonometric function of SIN, which takes an angle as its
argument and returns the length ratio of the side opposite the angle to the
hypotenuse.
ASIN Function Example
The example uses ASIN to calculate π. By definition, a full circle is 2π
radians. ASIN(1) is π/2 radians (90 degrees).
Public Pi 'Declare variables.
Pi = 2 * ASin( 1 ) 'Calculate Pi.
ATN (Number)
Returns the arc tangent of a number.
Syntax
x = ATN (number)
Remarks
Number can be any valid numeric expression.
The ATN function takes the ratio of two sides of a right triangle and returns
the corresponding angle. The ratio is the length of the side opposite the angle
divided by the length of the side adjacent to the angle. 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/π.
ATN is the inverse trigonometric function of TAN, which takes an angle as its
argument and returns the ratio of two sides of a right triangle. Do not confuse
ATN with the cotangent, which is the simple inverse of a tangent (1/TAN).