\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{\frac{\pi}{b + a}}{\frac{1}{\frac{\frac{1}{a} - \frac{1}{b}}{2}}}}{b - a}double f(double a, double b) {
double r7769320 = atan2(1.0, 0.0);
double r7769321 = 2.0;
double r7769322 = r7769320 / r7769321;
double r7769323 = 1.0;
double r7769324 = b;
double r7769325 = r7769324 * r7769324;
double r7769326 = a;
double r7769327 = r7769326 * r7769326;
double r7769328 = r7769325 - r7769327;
double r7769329 = r7769323 / r7769328;
double r7769330 = r7769322 * r7769329;
double r7769331 = r7769323 / r7769326;
double r7769332 = r7769323 / r7769324;
double r7769333 = r7769331 - r7769332;
double r7769334 = r7769330 * r7769333;
return r7769334;
}
double f(double a, double b) {
double r7769335 = atan2(1.0, 0.0);
double r7769336 = b;
double r7769337 = a;
double r7769338 = r7769336 + r7769337;
double r7769339 = r7769335 / r7769338;
double r7769340 = 1.0;
double r7769341 = r7769340 / r7769337;
double r7769342 = r7769340 / r7769336;
double r7769343 = r7769341 - r7769342;
double r7769344 = 2.0;
double r7769345 = r7769343 / r7769344;
double r7769346 = r7769340 / r7769345;
double r7769347 = r7769339 / r7769346;
double r7769348 = r7769336 - r7769337;
double r7769349 = r7769347 / r7769348;
return r7769349;
}



Bits error versus a



Bits error versus b
Results
Initial program 14.2
Simplified14.2
rmApplied difference-of-squares9.8
Applied associate-/r*0.3
Taylor expanded around 0 0.3
Simplified0.3
rmApplied *-un-lft-identity0.3
Applied div-inv0.3
Applied div-inv0.3
Applied distribute-lft-out--0.3
Applied times-frac0.3
Applied associate-/l*0.3
rmApplied div-inv0.3
Applied associate-/r*0.3
Final simplification0.3
herbie shell --seed 2019164 +o rules:numerics
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
(* (* (/ PI 2) (/ 1 (- (* b b) (* a a)))) (- (/ 1 a) (/ 1 b))))