contents   index   previous   next



Math.atan()

syntax:

Math.atan(x)

where:

x - any number.

 

return:

number - an implementation-dependent approximation of the arctangent of the argument.

 

description:

The return value is expressed in radians and ranges from -pi/2 to +pi/2.

 

example:

//The arctangent of x is returned 

//in the following function:

function compute_arctangent(x)

{

   return Math.arctangent(x)

}

 


Math.atan2()