\cos^{-1} \left(\frac{1}{\mathsf{hypot}\left(x, y\right)}\right)\cos^{-1} \left(\frac{1}{\mathsf{hypot}\left(x, y\right)}\right)double code(double x, double y) {
return ((double) acos(((double) (1.0 / ((double) hypot(x, y))))));
}
double code(double x, double y) {
return ((double) acos(((double) (1.0 / ((double) hypot(x, y))))));
}



Bits error versus x



Bits error versus y
Results
Initial program 0.0
Final simplification0.0
herbie shell --seed 2020153
(FPCore (x y)
:name "(acos (/ 1.0 (hypot x y)))"
:precision binary64
(acos (/ 1.0 (hypot x y))))