\left(\frac{\pi}{2} \cdot \frac{1}{b \cdot b - a \cdot a}\right) \cdot \left(\frac{1}{a} - \frac{1}{b}\right)\left(0.5 \cdot \frac{\pi}{a \cdot b}\right) \cdot \frac{1}{b + a}double f(double a, double b) {
double r36187 = atan2(1.0, 0.0);
double r36188 = 2.0;
double r36189 = r36187 / r36188;
double r36190 = 1.0;
double r36191 = b;
double r36192 = r36191 * r36191;
double r36193 = a;
double r36194 = r36193 * r36193;
double r36195 = r36192 - r36194;
double r36196 = r36190 / r36195;
double r36197 = r36189 * r36196;
double r36198 = r36190 / r36193;
double r36199 = r36190 / r36191;
double r36200 = r36198 - r36199;
double r36201 = r36197 * r36200;
return r36201;
}
double f(double a, double b) {
double r36202 = 0.5;
double r36203 = atan2(1.0, 0.0);
double r36204 = a;
double r36205 = b;
double r36206 = r36204 * r36205;
double r36207 = r36203 / r36206;
double r36208 = r36202 * r36207;
double r36209 = 1.0;
double r36210 = r36205 + r36204;
double r36211 = r36209 / r36210;
double r36212 = r36208 * r36211;
return r36212;
}



Bits error versus a



Bits error versus b
Results
Initial program 14.5
rmApplied difference-of-squares9.7
Applied *-un-lft-identity9.7
Applied times-frac9.2
Applied associate-*r*9.2
Simplified9.2
rmApplied associate-*l/9.2
Applied associate-*l/0.3
Taylor expanded around 0 0.2
rmApplied div-inv0.3
Final simplification0.3
herbie shell --seed 2020021
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
:precision binary64
(* (* (/ PI 2) (/ 1 (- (* b b) (* a a)))) (- (/ 1 a) (/ 1 b))))