\left(\frac{\pi}{2} \cdot \frac{1}{b \cdot b - a \cdot a}\right) \cdot \left(\frac{1}{a} - \frac{1}{b}\right)
\frac{\frac{1}{\frac{b + a}{\frac{\pi}{2}}}}{b \cdot a}
(FPCore (a b) :precision binary64 (* (* (/ PI 2.0) (/ 1.0 (- (* b b) (* a a)))) (- (/ 1.0 a) (/ 1.0 b))))
(FPCore (a b) :precision binary64 (/ (/ 1.0 (/ (+ b a) (/ PI 2.0))) (* b a)))
double code(double a, double b) {
return ((((double) M_PI) / 2.0) * (1.0 / ((b * b) - (a * a)))) * ((1.0 / a) - (1.0 / b));
}
double code(double a, double b) {
return (1.0 / ((b + a) / (((double) M_PI) / 2.0))) / (b * a);
}



Bits error versus a



Bits error versus b
Results
Initial program 13.8
Simplified13.8
rmApplied frac-sub_binary6413.8
Applied associate-*r/_binary6413.8
Simplified0.2
rmApplied *-un-lft-identity_binary640.2
Applied *-un-lft-identity_binary640.2
Applied times-frac_binary640.2
Applied associate-/l*_binary640.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2021198
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
:precision binary64
(* (* (/ PI 2.0) (/ 1.0 (- (* b b) (* a a)))) (- (/ 1.0 a) (/ 1.0 b))))