May 2001
Intermediate to advanced
720 pages
23h 24m
English
Math.atan( ) Method — compute the arc tangent of a number
Flash 5; may be used when exporting Flash 4 movies
Math.atan(x)
A number between -Infinity and
Infinity, inclusive (the tangent of some angle).
The angle, in radians, whose tangent is x.
The arc tan function (sometimes written as tan-1) is the inverse of the tangent function. It returns the angle whose tangent has the specified value, in radians. The return value is in the range -π/2 to π/2.
trace (Math.atan(1.0)); // Displays: 0.78539... trace (Math.atan(0.0)); // Displays: 0 trace (Math.atan(-Infinity)); // Displays: -1.5707... (i.e., -pi/2)
Math.acos( ), Math.asin( ),
Math.tan( )
Read now
Unlock full access