\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)}{b + a}}{2 \cdot \left(b - a\right)}double f(double a, double b) {
double r41400 = atan2(1.0, 0.0);
double r41401 = 2.0;
double r41402 = r41400 / r41401;
double r41403 = 1.0;
double r41404 = b;
double r41405 = r41404 * r41404;
double r41406 = a;
double r41407 = r41406 * r41406;
double r41408 = r41405 - r41407;
double r41409 = r41403 / r41408;
double r41410 = r41402 * r41409;
double r41411 = r41403 / r41406;
double r41412 = r41403 / r41404;
double r41413 = r41411 - r41412;
double r41414 = r41410 * r41413;
return r41414;
}
double f(double a, double b) {
double r41415 = 1.0;
double r41416 = atan2(1.0, 0.0);
double r41417 = a;
double r41418 = r41416 / r41417;
double r41419 = b;
double r41420 = r41416 / r41419;
double r41421 = r41418 - r41420;
double r41422 = r41415 * r41421;
double r41423 = r41419 + r41417;
double r41424 = r41422 / r41423;
double r41425 = 2.0;
double r41426 = r41419 - r41417;
double r41427 = r41425 * r41426;
double r41428 = r41424 / r41427;
return r41428;
}



Bits error versus a



Bits error versus b
Results
Initial program 14.1
rmApplied difference-of-squares9.2
Applied associate-/r*8.7
rmApplied frac-times8.7
Applied associate-*l/0.3
rmApplied associate-*r/0.3
Applied associate-*l/0.3
Taylor expanded around 0 0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2019303
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
:precision binary64
(* (* (/ PI 2) (/ 1 (- (* b b) (* a a)))) (- (/ 1 a) (/ 1 b))))