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



Bits error versus a



Bits error versus b
Results
Initial program 14.3
rmApplied frac-sub14.3
Applied associate-*l/14.3
Applied frac-times14.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2020181
(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))))