\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}{a} \cdot \frac{\pi}{b}}{b + a}double f(double a, double b) {
double r53211 = atan2(1.0, 0.0);
double r53212 = 2.0;
double r53213 = r53211 / r53212;
double r53214 = 1.0;
double r53215 = b;
double r53216 = r53215 * r53215;
double r53217 = a;
double r53218 = r53217 * r53217;
double r53219 = r53216 - r53218;
double r53220 = r53214 / r53219;
double r53221 = r53213 * r53220;
double r53222 = r53214 / r53217;
double r53223 = r53214 / r53215;
double r53224 = r53222 - r53223;
double r53225 = r53221 * r53224;
return r53225;
}
double f(double a, double b) {
double r53226 = 0.5;
double r53227 = a;
double r53228 = r53226 / r53227;
double r53229 = atan2(1.0, 0.0);
double r53230 = b;
double r53231 = r53229 / r53230;
double r53232 = r53228 * r53231;
double r53233 = r53230 + r53227;
double r53234 = r53232 / r53233;
return r53234;
}



Bits error versus a



Bits error versus b
Results
Initial program 14.0
rmApplied difference-of-squares9.3
Applied *-un-lft-identity9.3
Applied times-frac8.9
Applied associate-*r*8.9
Simplified8.8
rmApplied associate-*l/8.8
Applied associate-*l/0.3
Taylor expanded around 0 0.2
rmApplied *-un-lft-identity0.2
Applied times-frac0.3
Applied associate-*r*0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2020045 +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))))