Calculate arccosine: acos
#include <stdio.h> #include <math.h> #define PI 3.14159265 int main () { double v, result; v = 0.5; result = acos ( v ) * 180 / PI; printf ("Arccosine of %lf is %lf\n degrees", v, result ); return 0; }