\left(\frac{\pi}{2} \cdot \frac{1}{b \cdot b - a \cdot a}\right) \cdot \left(\frac{1}{a} - \frac{1}{b}\right)\frac{\pi \cdot 1}{2} \cdot \frac{\frac{\frac{1}{a} - \frac{1}{b}}{b + a}}{b - a}double f(double a, double b) {
double r39270 = atan2(1.0, 0.0);
double r39271 = 2.0;
double r39272 = r39270 / r39271;
double r39273 = 1.0;
double r39274 = b;
double r39275 = r39274 * r39274;
double r39276 = a;
double r39277 = r39276 * r39276;
double r39278 = r39275 - r39277;
double r39279 = r39273 / r39278;
double r39280 = r39272 * r39279;
double r39281 = r39273 / r39276;
double r39282 = r39273 / r39274;
double r39283 = r39281 - r39282;
double r39284 = r39280 * r39283;
return r39284;
}
double f(double a, double b) {
double r39285 = atan2(1.0, 0.0);
double r39286 = 1.0;
double r39287 = r39285 * r39286;
double r39288 = 2.0;
double r39289 = r39287 / r39288;
double r39290 = a;
double r39291 = r39286 / r39290;
double r39292 = b;
double r39293 = r39286 / r39292;
double r39294 = r39291 - r39293;
double r39295 = r39292 + r39290;
double r39296 = r39294 / r39295;
double r39297 = r39292 - r39290;
double r39298 = r39296 / r39297;
double r39299 = r39289 * r39298;
return r39299;
}



Bits error versus a



Bits error versus b
Results
Initial program 15.0
rmApplied difference-of-squares9.9
Applied associate-/r*9.4
rmApplied associate-*r/9.3
Applied associate-*l/0.3
rmApplied frac-times0.3
Applied associate-*l/0.3
rmApplied *-un-lft-identity0.3
Applied times-frac0.3
Applied times-frac0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2019353
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
:precision binary64
(* (* (/ PI 2) (/ 1 (- (* b b) (* a a)))) (- (/ 1 a) (/ 1 b))))