\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{-1}{x}}{x + 1}double f(double x) {
double r5576563 = 1.0;
double r5576564 = x;
double r5576565 = r5576564 + r5576563;
double r5576566 = r5576563 / r5576565;
double r5576567 = r5576563 / r5576564;
double r5576568 = r5576566 - r5576567;
return r5576568;
}
double f(double x) {
double r5576569 = -1.0;
double r5576570 = x;
double r5576571 = r5576569 / r5576570;
double r5576572 = 1.0;
double r5576573 = r5576570 + r5576572;
double r5576574 = r5576571 / r5576573;
return r5576574;
}



Bits error versus x
Results
Initial program 14.5
rmApplied frac-sub13.8
Simplified0.4
Simplified0.4
rmApplied *-un-lft-identity0.4
Applied distribute-rgt-out0.4
Applied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2019107
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))