\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{-1}{x + 1}}{x}double f(double x) {
double r2060738 = 1.0;
double r2060739 = x;
double r2060740 = r2060739 + r2060738;
double r2060741 = r2060738 / r2060740;
double r2060742 = r2060738 / r2060739;
double r2060743 = r2060741 - r2060742;
return r2060743;
}
double f(double x) {
double r2060744 = -1.0;
double r2060745 = x;
double r2060746 = 1.0;
double r2060747 = r2060745 + r2060746;
double r2060748 = r2060744 / r2060747;
double r2060749 = r2060748 / r2060745;
return r2060749;
}



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