SayoriOS  0.3.3
acos.c
1 #include "lib/math.h"
2 
3 double acos(double x) {
4  if(x < -1.0 || x > 1.0) {
5  // return NAN;
6  return 0.0;
7  }
8 
9  return PI / 2.0 - asin(x);
10 }