\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}{a}}{b} \cdot 0.5}{b + a}double f(double a, double b) {
double r2446680 = atan2(1.0, 0.0);
double r2446681 = 2.0;
double r2446682 = r2446680 / r2446681;
double r2446683 = 1.0;
double r2446684 = b;
double r2446685 = r2446684 * r2446684;
double r2446686 = a;
double r2446687 = r2446686 * r2446686;
double r2446688 = r2446685 - r2446687;
double r2446689 = r2446683 / r2446688;
double r2446690 = r2446682 * r2446689;
double r2446691 = r2446683 / r2446686;
double r2446692 = r2446683 / r2446684;
double r2446693 = r2446691 - r2446692;
double r2446694 = r2446690 * r2446693;
return r2446694;
}
double f(double a, double b) {
double r2446695 = atan2(1.0, 0.0);
double r2446696 = a;
double r2446697 = r2446695 / r2446696;
double r2446698 = b;
double r2446699 = r2446697 / r2446698;
double r2446700 = 0.5;
double r2446701 = r2446699 * r2446700;
double r2446702 = r2446698 + r2446696;
double r2446703 = r2446701 / r2446702;
return r2446703;
}



Bits error versus a



Bits error versus b
Results
Initial program 13.7
rmApplied difference-of-squares9.2
Applied *-un-lft-identity9.2
Applied times-frac8.8
Applied associate-*r*8.8
Simplified8.7
rmApplied associate-*l/8.7
Applied associate-*l/0.3
Taylor expanded around 0 0.2
rmApplied associate-/r*0.2
Final simplification0.2
herbie shell --seed 2019200
(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))))