\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 \pi}{a \cdot b}}{b + a}double f(double a, double b) {
double r46092 = atan2(1.0, 0.0);
double r46093 = 2.0;
double r46094 = r46092 / r46093;
double r46095 = 1.0;
double r46096 = b;
double r46097 = r46096 * r46096;
double r46098 = a;
double r46099 = r46098 * r46098;
double r46100 = r46097 - r46099;
double r46101 = r46095 / r46100;
double r46102 = r46094 * r46101;
double r46103 = r46095 / r46098;
double r46104 = r46095 / r46096;
double r46105 = r46103 - r46104;
double r46106 = r46102 * r46105;
return r46106;
}
double f(double a, double b) {
double r46107 = 0.5;
double r46108 = atan2(1.0, 0.0);
double r46109 = r46107 * r46108;
double r46110 = a;
double r46111 = b;
double r46112 = r46110 * r46111;
double r46113 = r46109 / r46112;
double r46114 = r46111 + r46110;
double r46115 = r46113 / r46114;
return r46115;
}



Bits error versus a



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