User Guide

Math 429
SQRT2 (Math.SQRT2 property)
public static SQRT2 : Number
A mathematical constant for the square root of 2, with an approximate value of
1.4142135623730951.
Availability: ActionScript 1.0; Flash Lite 2.0 - 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.
Example
This example traces the value of Math.SQRT2.
trace(Math.SQRT2);
// Output: 1.4142135623731
tan (Math.tan method)
public static tan(x:Number) : Number
Computes and returns the tangent of the specified angle. To calculate a radian, use the
information outlined in the introduction to the Math class.
Availability: ActionScript 1.0; Flash Lite 2.0 - 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
x:Number - A number that represents an angle measured in radians.
Returns
Number - A number; tangent of parameter x.