\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{\frac{\pi}{\frac{b + a}{b \cdot \frac{1}{2} - \frac{1}{2} \cdot a}}}{a \cdot b}}{b - a}double f(double a, double b) {
double r2735337 = atan2(1.0, 0.0);
double r2735338 = 2.0;
double r2735339 = r2735337 / r2735338;
double r2735340 = 1.0;
double r2735341 = b;
double r2735342 = r2735341 * r2735341;
double r2735343 = a;
double r2735344 = r2735343 * r2735343;
double r2735345 = r2735342 - r2735344;
double r2735346 = r2735340 / r2735345;
double r2735347 = r2735339 * r2735346;
double r2735348 = r2735340 / r2735343;
double r2735349 = r2735340 / r2735341;
double r2735350 = r2735348 - r2735349;
double r2735351 = r2735347 * r2735350;
return r2735351;
}
double f(double a, double b) {
double r2735352 = atan2(1.0, 0.0);
double r2735353 = b;
double r2735354 = a;
double r2735355 = r2735353 + r2735354;
double r2735356 = 0.5;
double r2735357 = r2735353 * r2735356;
double r2735358 = r2735356 * r2735354;
double r2735359 = r2735357 - r2735358;
double r2735360 = r2735355 / r2735359;
double r2735361 = r2735352 / r2735360;
double r2735362 = r2735354 * r2735353;
double r2735363 = r2735361 / r2735362;
double r2735364 = r2735353 - r2735354;
double r2735365 = r2735363 / r2735364;
return r2735365;
}



Bits error versus a



Bits error versus b
Results
Initial program 14.6
Simplified9.4
rmApplied associate-/r*0.2
rmApplied *-un-lft-identity0.2
Applied div-inv0.2
Applied times-frac0.3
Applied *-un-lft-identity0.3
Applied div-inv0.3
Applied times-frac0.3
Applied distribute-lft-out--0.3
Applied associate-/l*0.3
Simplified0.3
rmApplied frac-sub0.3
Applied associate-/r/0.2
Applied associate-/r*0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2019149
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
(* (* (/ PI 2) (/ 1 (- (* b b) (* a a)))) (- (/ 1 a) (/ 1 b))))