\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{-1}{x + 1}}{x}double f(double x) {
double r1875800 = 1.0;
double r1875801 = x;
double r1875802 = r1875801 + r1875800;
double r1875803 = r1875800 / r1875802;
double r1875804 = r1875800 / r1875801;
double r1875805 = r1875803 - r1875804;
return r1875805;
}
double f(double x) {
double r1875806 = -1.0;
double r1875807 = x;
double r1875808 = 1.0;
double r1875809 = r1875807 + r1875808;
double r1875810 = r1875806 / r1875809;
double r1875811 = r1875810 / r1875807;
return r1875811;
}



Bits error versus x
Results
Initial program 14.5
rmApplied frac-sub13.8
Simplified13.8
Taylor expanded around 0 0.4
rmApplied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2019158 +o rules:numerics
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))