\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}{2}}{b + a} \cdot 1}{a \cdot b}double f(double a, double b) {
double r36554 = atan2(1.0, 0.0);
double r36555 = 2.0;
double r36556 = r36554 / r36555;
double r36557 = 1.0;
double r36558 = b;
double r36559 = r36558 * r36558;
double r36560 = a;
double r36561 = r36560 * r36560;
double r36562 = r36559 - r36561;
double r36563 = r36557 / r36562;
double r36564 = r36556 * r36563;
double r36565 = r36557 / r36560;
double r36566 = r36557 / r36558;
double r36567 = r36565 - r36566;
double r36568 = r36564 * r36567;
return r36568;
}
double f(double a, double b) {
double r36569 = atan2(1.0, 0.0);
double r36570 = 2.0;
double r36571 = r36569 / r36570;
double r36572 = b;
double r36573 = a;
double r36574 = r36572 + r36573;
double r36575 = r36571 / r36574;
double r36576 = 1.0;
double r36577 = r36575 * r36576;
double r36578 = r36573 * r36572;
double r36579 = r36577 / r36578;
return r36579;
}



Bits error versus a



Bits error versus b
Results
Initial program 14.2
rmApplied difference-of-squares9.4
Applied *-un-lft-identity9.4
Applied times-frac9.1
Applied associate-*r*9.1
Simplified9.0
rmApplied associate-*l*0.3
Taylor expanded around 0 0.3
rmApplied associate-*r/0.2
Final simplification0.2
herbie shell --seed 2020100
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
:precision binary64
(* (* (/ PI 2) (/ 1 (- (* b b) (* a a)))) (- (/ 1 a) (/ 1 b))))