\left(\frac{\pi}{2} \cdot \frac{1}{b \cdot b - a \cdot a}\right) \cdot \left(\frac{1}{a} - \frac{1}{b}\right)\frac{0.5 \cdot \frac{\pi}{a \cdot b}}{b + a}double f(double a, double b) {
double r63677 = atan2(1.0, 0.0);
double r63678 = 2.0;
double r63679 = r63677 / r63678;
double r63680 = 1.0;
double r63681 = b;
double r63682 = r63681 * r63681;
double r63683 = a;
double r63684 = r63683 * r63683;
double r63685 = r63682 - r63684;
double r63686 = r63680 / r63685;
double r63687 = r63679 * r63686;
double r63688 = r63680 / r63683;
double r63689 = r63680 / r63681;
double r63690 = r63688 - r63689;
double r63691 = r63687 * r63690;
return r63691;
}
double f(double a, double b) {
double r63692 = 0.5;
double r63693 = atan2(1.0, 0.0);
double r63694 = a;
double r63695 = b;
double r63696 = r63694 * r63695;
double r63697 = r63693 / r63696;
double r63698 = r63692 * r63697;
double r63699 = r63695 + r63694;
double r63700 = r63698 / r63699;
return r63700;
}



Bits error versus a



Bits error versus b
Results
Initial program 14.1
rmApplied difference-of-squares9.5
Applied *-un-lft-identity9.5
Applied times-frac9.0
Applied associate-*r*9.0
Simplified9.0
rmApplied associate-*l/9.0
Applied associate-*l/0.3
rmApplied frac-times0.3
Applied associate-*l/0.3
Taylor expanded around 0 0.2
Final simplification0.2
herbie shell --seed 2020035 +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))))