\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{-1}{x}}{x + 1}double f(double x) {
double r1293750 = 1.0;
double r1293751 = x;
double r1293752 = r1293751 + r1293750;
double r1293753 = r1293750 / r1293752;
double r1293754 = r1293750 / r1293751;
double r1293755 = r1293753 - r1293754;
return r1293755;
}
double f(double x) {
double r1293756 = -1.0;
double r1293757 = x;
double r1293758 = r1293756 / r1293757;
double r1293759 = 1.0;
double r1293760 = r1293757 + r1293759;
double r1293761 = r1293758 / r1293760;
return r1293761;
}



Bits error versus x
Results
Initial program 14.9
rmApplied frac-sub14.3
Simplified0.3
Simplified0.3
rmApplied *-un-lft-identity0.3
Applied distribute-rgt-out0.3
Applied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2019132
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))