\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{0.5 \cdot \left(\frac{\pi}{a} - \frac{\pi}{b}\right)}{b + a}}{b - a}double f(double a, double b) {
double r55582 = atan2(1.0, 0.0);
double r55583 = 2.0;
double r55584 = r55582 / r55583;
double r55585 = 1.0;
double r55586 = b;
double r55587 = r55586 * r55586;
double r55588 = a;
double r55589 = r55588 * r55588;
double r55590 = r55587 - r55589;
double r55591 = r55585 / r55590;
double r55592 = r55584 * r55591;
double r55593 = r55585 / r55588;
double r55594 = r55585 / r55586;
double r55595 = r55593 - r55594;
double r55596 = r55592 * r55595;
return r55596;
}
double f(double a, double b) {
double r55597 = 0.5;
double r55598 = atan2(1.0, 0.0);
double r55599 = a;
double r55600 = r55598 / r55599;
double r55601 = b;
double r55602 = r55598 / r55601;
double r55603 = r55600 - r55602;
double r55604 = r55597 * r55603;
double r55605 = r55601 + r55599;
double r55606 = r55604 / r55605;
double r55607 = r55601 - r55599;
double r55608 = r55606 / r55607;
return r55608;
}



Bits error versus a



Bits error versus b
Results
Initial program 14.3
rmApplied difference-of-squares9.3
Applied *-un-lft-identity9.3
Applied times-frac9.0
Applied associate-*r*9.0
Simplified8.9
rmApplied associate-*r/8.9
Applied associate-*l/0.3
rmApplied associate-*l/0.3
Applied associate-*l/0.3
Taylor expanded around 0 0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2020024 +o rules:numerics
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
:precision binary64
(* (* (/ PI 2) (/ 1 (- (* b b) (* a a)))) (- (/ 1 a) (/ 1 b))))