\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}}} \cdot \left(\frac{1}{b - a} \cdot \left(1 \cdot \left(b - a\right)\right)\right)}{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))) (* (/ 1.0 (- b a)) (* 1.0 (- b a)))) (* b a)))
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) (b + a)) / (((double) M_PI) / 2.0))) * ((double) ((1.0 / ((double) (b - a))) * ((double) (1.0 * ((double) (b - a)))))))) / ((double) (b * a)));
}



Bits error versus a



Bits error versus b
Results
Initial program Error: 14.5 bits
rmApplied difference-of-squaresError: 9.5 bits
Applied *-un-lft-identityError: 9.5 bits
Applied times-fracError: 9.0 bits
Applied associate-*r*Error: 8.9 bits
SimplifiedError: 8.9 bits
rmApplied frac-subError: 8.9 bits
Applied associate-*r/Error: 8.9 bits
SimplifiedError: 0.3 bits
rmApplied clear-numError: 0.3 bits
SimplifiedError: 0.3 bits
Final simplificationError: 0.3 bits
herbie shell --seed 2020203
(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))))