\left(\frac{\pi}{2} \cdot \frac{1}{b \cdot b - a \cdot a}\right) \cdot \left(\frac{1}{a} - \frac{1}{b}\right)\frac{\pi \cdot 1}{2} \cdot \frac{\frac{\frac{1}{a} - \frac{1}{b}}{b + a}}{b - a}double f(double a, double b) {
double r39240 = atan2(1.0, 0.0);
double r39241 = 2.0;
double r39242 = r39240 / r39241;
double r39243 = 1.0;
double r39244 = b;
double r39245 = r39244 * r39244;
double r39246 = a;
double r39247 = r39246 * r39246;
double r39248 = r39245 - r39247;
double r39249 = r39243 / r39248;
double r39250 = r39242 * r39249;
double r39251 = r39243 / r39246;
double r39252 = r39243 / r39244;
double r39253 = r39251 - r39252;
double r39254 = r39250 * r39253;
return r39254;
}
double f(double a, double b) {
double r39255 = atan2(1.0, 0.0);
double r39256 = 1.0;
double r39257 = r39255 * r39256;
double r39258 = 2.0;
double r39259 = r39257 / r39258;
double r39260 = a;
double r39261 = r39256 / r39260;
double r39262 = b;
double r39263 = r39256 / r39262;
double r39264 = r39261 - r39263;
double r39265 = r39262 + r39260;
double r39266 = r39264 / r39265;
double r39267 = r39262 - r39260;
double r39268 = r39266 / r39267;
double r39269 = r39259 * r39268;
return r39269;
}



Bits error versus a



Bits error versus b
Results
Initial program 15.0
rmApplied difference-of-squares9.9
Applied associate-/r*9.4
rmApplied associate-*r/9.3
Applied associate-*l/0.3
rmApplied frac-times0.3
Applied associate-*l/0.3
rmApplied *-un-lft-identity0.3
Applied times-frac0.3
Applied times-frac0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2019353
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
:precision binary64
(* (* (/ PI 2) (/ 1 (- (* b b) (* a a)))) (- (/ 1 a) (/ 1 b))))