acos (Math)

Calculates arccosine.

Arguments

Real

number
to calculate arccosine for.

Return values

The resulting

angle
in radians as a real number in [0, pi] interval. If the argument is out of cosine bounds,
-nan
is returned.

Example

0.5 acos print
Output:
1.047198