Math.acos() (Function)

The inverse cosine of the passed in value.


ECMAScript edition - 2
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Netscape Enterprise Server version - 2.0
Opera - 3.0
Property/method value type:Number primitive
JavaScript syntax:-Math.acos(aValue)
Argument list:aValueSome meaningful numeric value

This function returns the arc cosine of the argument.

Special boundary conditions that affect the results are:

greater than 1NaN
less than -1NaN

The exact value yielded by this function may vary slightly from implementation to implementation due to differences in the underlying precision of the implementations math routines and the specific algorithm selected to evaluate this function.

The result of this method is the arc-cosine of the passed in value. The result is expressed in radians and ranges from 0 to pi.


See also:Math object, Math.asin(), Math.atan(), Math.atan2(), Math.cos(), Math.PI, Math.sin(), Math.tan(), Trigonometric function


ECMA 262 edition 2 - section -

ECMA 262 edition 3 - section -