contents   index   previous   next



Math.asin()

syntax:

Math.asin(x)

where:

x - a number between 1.0 and -1.0

 

return:

number - implementation-dependent approximation of the arc sine of the argument.

 

description:

The return value is expressed in radians and ranges from -pi/2 to +pi/2. Returns NaN if x cannot be converted to a number, is greater than 1, or less than -1.

 

example:

function compute_asin(x)

{

   return Math.asin(x)

}

//If you pass -1 to the function compute_acos(),

//the return is the

//value of -pi/2 , if you pass 3 the return is

//NaN since 3 is out of Math.acos's range.

 


Math.atan()