\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{1}{-1 - x}}{x}double f(double x) {
double r1979231 = 1.0;
double r1979232 = x;
double r1979233 = r1979232 + r1979231;
double r1979234 = r1979231 / r1979233;
double r1979235 = r1979231 / r1979232;
double r1979236 = r1979234 - r1979235;
return r1979236;
}
double f(double x) {
double r1979237 = 1.0;
double r1979238 = -1.0;
double r1979239 = x;
double r1979240 = r1979238 - r1979239;
double r1979241 = r1979237 / r1979240;
double r1979242 = r1979241 / r1979239;
return r1979242;
}



Bits error versus x
Results
Initial program 14.2
rmApplied frac-sub13.6
Simplified13.6
Simplified13.6
rmApplied frac-2neg13.6
Simplified0.4
Simplified0.4
rmApplied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2019144 +o rules:numerics
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))