Retro Rocket OS
BASIC-Powered Operating System
Loading...
Searching...
No Matches
ASN Function
ASN(real-expression)

Returns the arc sine (inverse sine) of the given expression, in radians. The input must be between -1 and 1.


Examples

PRINT ASN(0)

Produces 0.

PRINT ASN(1)

Produces approximately 1.570796 (π/2).

PRINT ASN(-1)

Produces approximately -1.570796 (-π/2).

REM Validate a sine identity
angle# = 0.5
PRINT ASN(SIN(angle#))

Produces the original angle (within floating point accuracy).


Notes

  • Argument range: -1 ≤ x ≤ 1. Values outside this range cause an error.
  • Return range: -π/2 ≤ result ≤ π/2 radians.
  • To convert the result to degrees, multiply by 180 / PI.
  • Inverse functions:
    • ACS (arc cosine)
    • ATN (arc tangent)

See also: SIN · ACS · ATN · TAN