\cos^{-1} \left(\frac{1 - 5 \cdot \left(v \cdot v\right)}{v \cdot v - 1}\right)
\frac{\pi}{2} - \sin^{-1} \left(\frac{\mathsf{fma}\left(v, v \cdot -5, 1\right)}{\mathsf{fma}\left(v, v, -1\right)}\right)
(FPCore (v) :precision binary64 (acos (/ (- 1.0 (* 5.0 (* v v))) (- (* v v) 1.0))))
(FPCore (v) :precision binary64 (- (/ PI 2.0) (asin (/ (fma v (* v -5.0) 1.0) (fma v v -1.0)))))
double code(double v) {
return acos((1.0 - (5.0 * (v * v))) / ((v * v) - 1.0));
}
double code(double v) {
return (((double) M_PI) / 2.0) - asin(fma(v, (v * -5.0), 1.0) / fma(v, v, -1.0));
}



Bits error versus v
Initial program 0.6
Simplified0.6
Applied acos-asin_binary640.6
Final simplification0.6
herbie shell --seed 2022088
(FPCore (v)
:name "Falkner and Boettcher, Appendix B, 1"
:precision binary64
(acos (/ (- 1.0 (* 5.0 (* v v))) (- (* v v) 1.0))))