\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{1 \cdot \left(\frac{\pi}{a} - \frac{\pi}{b}\right)}{2 \cdot \left(b - a\right)}}{b + a}double f(double a, double b) {
double r43429 = atan2(1.0, 0.0);
double r43430 = 2.0;
double r43431 = r43429 / r43430;
double r43432 = 1.0;
double r43433 = b;
double r43434 = r43433 * r43433;
double r43435 = a;
double r43436 = r43435 * r43435;
double r43437 = r43434 - r43436;
double r43438 = r43432 / r43437;
double r43439 = r43431 * r43438;
double r43440 = r43432 / r43435;
double r43441 = r43432 / r43433;
double r43442 = r43440 - r43441;
double r43443 = r43439 * r43442;
return r43443;
}
double f(double a, double b) {
double r43444 = 1.0;
double r43445 = atan2(1.0, 0.0);
double r43446 = a;
double r43447 = r43445 / r43446;
double r43448 = b;
double r43449 = r43445 / r43448;
double r43450 = r43447 - r43449;
double r43451 = r43444 * r43450;
double r43452 = 2.0;
double r43453 = r43448 - r43446;
double r43454 = r43452 * r43453;
double r43455 = r43451 / r43454;
double r43456 = r43448 + r43446;
double r43457 = r43455 / r43456;
return r43457;
}



Bits error versus a



Bits error versus b
Results
Initial program 15.0
rmApplied difference-of-squares10.3
Applied *-un-lft-identity10.3
Applied times-frac9.8
Applied associate-*r*9.8
Simplified9.8
rmApplied associate-*l/9.8
Applied associate-*l/0.3
rmApplied frac-times0.3
Applied associate-*l/0.3
Taylor expanded around 0 0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2020046
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
:precision binary64
(* (* (/ PI 2) (/ 1 (- (* b b) (* a a)))) (- (/ 1 a) (/ 1 b))))