Calculates the arc cosine of a number.
acos()
is the inverse of cos(). It expects arguments in the range -1 to 1. By default, acos()
returns values in the range 0 to π (about 3.14). If the angleMode() is DEGREES
, then values are returned in the range 0 to 180.
Examples
Syntax
acos(value)
Parameters
value
Number:
value whose arc cosine is to be returned.
Returns
Number: arc cosine of the given value.
Notice any errors or typos? Please let us know. Please feel free to edit src/math/trigonometry.js and open a pull request!