#include <math.h>
float acos (
floatx); /* number to calculate arc cosine of */
Description
The acos function calculates the arc cosine of the
floating-point number x whose value must be
between -1 and 1. The floating-point value returned by acos is
a number in the range 0-π.
Return Value
The acos function returns the arc cosine of x.
For x ∈ [-1, 1], acos(x) → [0,
π].
For x ∈ (-∞, -1) ∪ (1, ∞), acos(x) →
NaN.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.