asin(var x): var

acos(var x): var

atan(var x): var

atan2(var a, var b): var

Arc functions - the opposite of the sin, cos, tan function, return an angle for a given value. atan2 is used for higher precision when a is a sine and b a cosine.

Parameters:

x - any var.
a, b - any var; the tangent value is a/b.

Returns:

Angle in radians.

Example:

x = asin(1); // x is pi/2
x = asin(0.707); // x is pi/4

See also:

Trigonometry, sin, cos, tan

► latest version online