Computes the principal value of the arc cosine of the specified argument.
#include <math.h> double acos ( double x);
(IN) Specifies an argument to compute the arc cosine for.
Returns the arc cosine in the range (0, pi). When the argument is outside the permissible range, errno is set and matherr is called.
A domain error occurs for arguments not in the range (-1,1).