\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 \cdot \left(\frac{\pi}{a} - \frac{\pi}{b}\right)}{b + a}}{b - a}double f(double a, double b) {
double r41031 = atan2(1.0, 0.0);
double r41032 = 2.0;
double r41033 = r41031 / r41032;
double r41034 = 1.0;
double r41035 = b;
double r41036 = r41035 * r41035;
double r41037 = a;
double r41038 = r41037 * r41037;
double r41039 = r41036 - r41038;
double r41040 = r41034 / r41039;
double r41041 = r41033 * r41040;
double r41042 = r41034 / r41037;
double r41043 = r41034 / r41035;
double r41044 = r41042 - r41043;
double r41045 = r41041 * r41044;
return r41045;
}
double f(double a, double b) {
double r41046 = 0.5;
double r41047 = atan2(1.0, 0.0);
double r41048 = a;
double r41049 = r41047 / r41048;
double r41050 = b;
double r41051 = r41047 / r41050;
double r41052 = r41049 - r41051;
double r41053 = r41046 * r41052;
double r41054 = r41050 + r41048;
double r41055 = r41053 / r41054;
double r41056 = r41050 - r41048;
double r41057 = r41055 / r41056;
return r41057;
}



Bits error versus a



Bits error versus b
Results
Initial program 14.3
rmApplied difference-of-squares9.3
Applied *-un-lft-identity9.3
Applied times-frac9.0
Applied associate-*r*9.0
Simplified8.9
rmApplied associate-*r/8.9
Applied associate-*l/0.3
rmApplied associate-*l/0.3
Applied associate-*l/0.3
Taylor expanded around 0 0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2020024
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
:precision binary64
(* (* (/ PI 2) (/ 1 (- (* b b) (* a a)))) (- (/ 1 a) (/ 1 b))))