Inverse (arc) sine function.
Synopsis
$ZARCSIN(n)
Parameters
n Signed decimal number.
Description
$ZARCSIN returns the trigonometric inverse (arc) sine of n. The result is given in radians.
Parameters
n
Signed decimal number ranging from 1 to -1 (inclusive). It can be specified as a value, a variable, or an expression. Numbers outside the range return an <ILLEGAL VALUE> error.
The following are arc sine values returned by $ZARCSIN:
1 returns 1.570796326794896619
0 returns 0
-1 returns -1.570796326794896619
Example
The following example permits you to compare the arc sine and the arc cosine of a number:
   READ "Input a number: ",num
   IF num>1 { WRITE !,"ILLEGAL VALUE: number too big" }
   ELSEIF num<-1 { WRITE !,"ILLEGAL VALUE: number too small" }
   ELSE { 
         WRITE !,"the arc sine is: ",$ZARCSIN(num)
         WRITE !,"the arc cosine is: ",$ZARCCOS(num)
        }
   QUIT
See Also