double code(double a, double b) {
return ((double) (((double) (((double) (((double) M_PI) / 2.0)) * ((double) (1.0 / ((double) (((double) (b * b)) - ((double) (a * a)))))))) * ((double) (((double) (1.0 / a)) - ((double) (1.0 / b))))));
}
double code(double a, double b) {
return ((double) (((double) (((double) M_PI) / 2.0)) * ((double) (((double) (1.0 * ((double) (((double) (((double) (1.0 / a)) - ((double) (1.0 / b)))) / ((double) (a + b)))))) / ((double) (b - a))))));
}



Bits error versus a



Bits error versus b
Results
Initial program 14.2
Simplified14.2
rmApplied difference-of-squares9.5
Applied *-un-lft-identity9.5
Applied times-frac9.0
Applied associate-*l*0.4
Simplified0.4
rmApplied associate-*r/0.3
Applied associate-*r/0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2020191
(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))))