\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{\left(b - a\right) \cdot 1}{b + a} \cdot \left(\frac{1}{b - a} \cdot \pi\right)}{2 \cdot \left(a \cdot b\right)}double f(double a, double b) {
double r2958677 = atan2(1.0, 0.0);
double r2958678 = 2.0;
double r2958679 = r2958677 / r2958678;
double r2958680 = 1.0;
double r2958681 = b;
double r2958682 = r2958681 * r2958681;
double r2958683 = a;
double r2958684 = r2958683 * r2958683;
double r2958685 = r2958682 - r2958684;
double r2958686 = r2958680 / r2958685;
double r2958687 = r2958679 * r2958686;
double r2958688 = r2958680 / r2958683;
double r2958689 = r2958680 / r2958681;
double r2958690 = r2958688 - r2958689;
double r2958691 = r2958687 * r2958690;
return r2958691;
}
double f(double a, double b) {
double r2958692 = b;
double r2958693 = a;
double r2958694 = r2958692 - r2958693;
double r2958695 = 1.0;
double r2958696 = r2958694 * r2958695;
double r2958697 = r2958692 + r2958693;
double r2958698 = r2958696 / r2958697;
double r2958699 = r2958695 / r2958694;
double r2958700 = atan2(1.0, 0.0);
double r2958701 = r2958699 * r2958700;
double r2958702 = r2958698 * r2958701;
double r2958703 = 2.0;
double r2958704 = r2958693 * r2958692;
double r2958705 = r2958703 * r2958704;
double r2958706 = r2958702 / r2958705;
return r2958706;
}



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-frac8.9
Applied associate-*r*8.9
Simplified8.8
rmApplied frac-sub8.8
Applied associate-*l/8.9
Applied frac-times8.8
Simplified0.2
rmApplied *-un-lft-identity0.2
Applied times-frac0.2
Simplified0.3
rmApplied associate-/r/0.3
Final simplification0.3
herbie shell --seed 2019169
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
(* (* (/ PI 2.0) (/ 1.0 (- (* b b) (* a a)))) (- (/ 1.0 a) (/ 1.0 b))))