\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{-1}{x}}{x + 1}double f(double x) {
double r6653609 = 1.0;
double r6653610 = x;
double r6653611 = r6653610 + r6653609;
double r6653612 = r6653609 / r6653611;
double r6653613 = r6653609 / r6653610;
double r6653614 = r6653612 - r6653613;
return r6653614;
}
double f(double x) {
double r6653615 = -1.0;
double r6653616 = x;
double r6653617 = r6653615 / r6653616;
double r6653618 = 1.0;
double r6653619 = r6653616 + r6653618;
double r6653620 = r6653617 / r6653619;
return r6653620;
}



Bits error versus x
Results
Initial program 14.5
rmApplied frac-sub13.9
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 2019104
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))