Math
747
Returns
Number
- A number between negative pi divided by 2 and positive pi divided by 2.
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
acos (Math.acos method)
,
atan (Math.atan method)
,
atan2 (Math.atan2 method)
,
cos (Math.cos method)
,
sin (Math.sin method)
,
tan (Math.tan method)
atan (Math.atan method)
public static atan(tangent:Number) : Number
Computes and returns the value, in radians, of the angle whose tangent is specified in the
parameter
tangent
. The return value is between negative pi divided by 2 and positive pi
divided by 2.
Availability:
ActionScript 1.0; 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.
Parameters
tangent
:Number
- A number that represents the tangent of an angle.
Returns
Number
- A number between negative pi divided by 2 and positive pi divided by 2.
Example
The following example displays the angle value for several tangents.
trace(Math.atan(-1)); // output: -0.785398163397448
trace(Math.atan(0)); // output: 0
trace(Math.atan(1)); // output: 0.785398163397448
See also
acos (Math.acos method)
,
asin (Math.asin method)
,
atan2 (Math.atan2 method)
,
cos (Math.cos method)
,
sin (Math.sin method)
,
tan (Math.tan method)
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...