User Guide
Math.asin() 423
Math.asin()
Availability
Flash Player 5. In Flash Player 4, the methods and properties of the Math class are emulated using
approximations and might not be as accurate as the non-emulated math functions that Flash
Player 5 supports.
Usage
Math.asin(x:Number) : Number;
Parameters
x
A number from -1.0 to 1.0.
Returns
A number between negative pi divided by 2 and positive pi divided by 2.
Description
Method; computes and returns the arc sine for the number specified in the parameter x,
in radians.
Example
The following example displays the arc sine for several values.
trace(Math.asin(-1)); // output: -1.5707963267949
trace(Math.asin(0)); // output: 0
trace(Math.asin(1)); // output: 1.5707963267949
See also
Math.acos(), Math.atan(), Math.atan2(), Math.cos(), Math.sin(), Math.tan()