\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{-1}{x + 1}}{x}double f(double x) {
double r2509663 = 1.0;
double r2509664 = x;
double r2509665 = r2509664 + r2509663;
double r2509666 = r2509663 / r2509665;
double r2509667 = r2509663 / r2509664;
double r2509668 = r2509666 - r2509667;
return r2509668;
}
double f(double x) {
double r2509669 = -1.0;
double r2509670 = x;
double r2509671 = 1.0;
double r2509672 = r2509670 + r2509671;
double r2509673 = r2509669 / r2509672;
double r2509674 = r2509673 / r2509670;
return r2509674;
}



Bits error versus x
Results
Initial program 14.9
rmApplied frac-sub14.3
Simplified14.3
Taylor expanded around 0 0.4
rmApplied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2019165
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))