\left(\frac{\pi}{2} \cdot \frac{1}{b \cdot b - a \cdot a}\right) \cdot \left(\frac{1}{a} - \frac{1}{b}\right)\frac{1}{a + b} \cdot \left(\frac{\pi}{b \cdot a} \cdot \frac{1}{2}\right)double f(double a, double b) {
double r1050605 = atan2(1.0, 0.0);
double r1050606 = 2.0;
double r1050607 = r1050605 / r1050606;
double r1050608 = 1.0;
double r1050609 = b;
double r1050610 = r1050609 * r1050609;
double r1050611 = a;
double r1050612 = r1050611 * r1050611;
double r1050613 = r1050610 - r1050612;
double r1050614 = r1050608 / r1050613;
double r1050615 = r1050607 * r1050614;
double r1050616 = r1050608 / r1050611;
double r1050617 = r1050608 / r1050609;
double r1050618 = r1050616 - r1050617;
double r1050619 = r1050615 * r1050618;
return r1050619;
}
double f(double a, double b) {
double r1050620 = 1.0;
double r1050621 = a;
double r1050622 = b;
double r1050623 = r1050621 + r1050622;
double r1050624 = r1050620 / r1050623;
double r1050625 = atan2(1.0, 0.0);
double r1050626 = r1050622 * r1050621;
double r1050627 = r1050625 / r1050626;
double r1050628 = 0.5;
double r1050629 = r1050627 * r1050628;
double r1050630 = r1050624 * r1050629;
return r1050630;
}



Bits error versus a



Bits error versus b
Results
Initial program 14.1
Simplified9.5
rmApplied *-un-lft-identity9.5
Applied *-un-lft-identity9.5
Applied times-frac9.5
Applied *-un-lft-identity9.5
Applied *-un-lft-identity9.5
Applied times-frac9.5
Applied distribute-lft-out--9.5
Applied times-frac0.3
Simplified0.3
Taylor expanded around inf 0.3
Final simplification0.3
herbie shell --seed 2019129 +o rules:numerics
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
(* (* (/ PI 2) (/ 1 (- (* b b) (* a a)))) (- (/ 1 a) (/ 1 b))))