\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}{2}}{b + a} \cdot \frac{\frac{\pi}{a} - \frac{\pi}{b}}{b - a}double f(double a, double b) {
double r50971501 = atan2(1.0, 0.0);
double r50971502 = 2.0;
double r50971503 = r50971501 / r50971502;
double r50971504 = 1.0;
double r50971505 = b;
double r50971506 = r50971505 * r50971505;
double r50971507 = a;
double r50971508 = r50971507 * r50971507;
double r50971509 = r50971506 - r50971508;
double r50971510 = r50971504 / r50971509;
double r50971511 = r50971503 * r50971510;
double r50971512 = r50971504 / r50971507;
double r50971513 = r50971504 / r50971505;
double r50971514 = r50971512 - r50971513;
double r50971515 = r50971511 * r50971514;
return r50971515;
}
double f(double a, double b) {
double r50971516 = 0.5;
double r50971517 = b;
double r50971518 = a;
double r50971519 = r50971517 + r50971518;
double r50971520 = r50971516 / r50971519;
double r50971521 = atan2(1.0, 0.0);
double r50971522 = r50971521 / r50971518;
double r50971523 = r50971521 / r50971517;
double r50971524 = r50971522 - r50971523;
double r50971525 = r50971517 - r50971518;
double r50971526 = r50971524 / r50971525;
double r50971527 = r50971520 * r50971526;
return r50971527;
}



Bits error versus a



Bits error versus b
Results
Initial program 13.8
Simplified13.8
rmApplied div-inv13.8
Applied difference-of-squares9.4
Applied *-un-lft-identity9.4
Applied times-frac9.0
Applied times-frac0.3
Simplified0.3
Simplified0.3
Taylor expanded around -inf 0.3
Final simplification0.3
herbie shell --seed 2019107
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
(* (* (/ PI 2) (/ 1 (- (* b b) (* a a)))) (- (/ 1 a) (/ 1 b))))