\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}{1 \cdot \left(a \cdot b\right)}double f(double a, double b) {
double r55541 = atan2(1.0, 0.0);
double r55542 = 2.0;
double r55543 = r55541 / r55542;
double r55544 = 1.0;
double r55545 = b;
double r55546 = r55545 * r55545;
double r55547 = a;
double r55548 = r55547 * r55547;
double r55549 = r55546 - r55548;
double r55550 = r55544 / r55549;
double r55551 = r55543 * r55550;
double r55552 = r55544 / r55547;
double r55553 = r55544 / r55545;
double r55554 = r55552 - r55553;
double r55555 = r55551 * r55554;
return r55555;
}
double f(double a, double b) {
double r55556 = atan2(1.0, 0.0);
double r55557 = 2.0;
double r55558 = r55556 / r55557;
double r55559 = b;
double r55560 = a;
double r55561 = r55559 + r55560;
double r55562 = r55558 / r55561;
double r55563 = 1.0;
double r55564 = r55562 * r55563;
double r55565 = r55560 * r55559;
double r55566 = r55563 * r55565;
double r55567 = r55564 / r55566;
return r55567;
}



Bits error versus a



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