\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{-1}{x}}{x + 1}double f(double x) {
double r1426746 = 1.0;
double r1426747 = x;
double r1426748 = r1426747 + r1426746;
double r1426749 = r1426746 / r1426748;
double r1426750 = r1426746 / r1426747;
double r1426751 = r1426749 - r1426750;
return r1426751;
}
double f(double x) {
double r1426752 = -1.0;
double r1426753 = x;
double r1426754 = r1426752 / r1426753;
double r1426755 = 1.0;
double r1426756 = r1426753 + r1426755;
double r1426757 = r1426754 / r1426756;
return r1426757;
}



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