\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{1 \cdot \left(-1\right)}{x + 1}}{x}double f(double x) {
double r3290338 = 1.0;
double r3290339 = x;
double r3290340 = r3290339 + r3290338;
double r3290341 = r3290338 / r3290340;
double r3290342 = r3290338 / r3290339;
double r3290343 = r3290341 - r3290342;
return r3290343;
}
double f(double x) {
double r3290344 = 1.0;
double r3290345 = -r3290344;
double r3290346 = r3290344 * r3290345;
double r3290347 = x;
double r3290348 = r3290347 + r3290344;
double r3290349 = r3290346 / r3290348;
double r3290350 = r3290349 / r3290347;
return r3290350;
}



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