\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{-1}{x}}{x + 1}double f(double x) {
double r1263039 = 1.0;
double r1263040 = x;
double r1263041 = r1263040 + r1263039;
double r1263042 = r1263039 / r1263041;
double r1263043 = r1263039 / r1263040;
double r1263044 = r1263042 - r1263043;
return r1263044;
}
double f(double x) {
double r1263045 = -1.0;
double r1263046 = x;
double r1263047 = r1263045 / r1263046;
double r1263048 = 1.0;
double r1263049 = r1263046 + r1263048;
double r1263050 = r1263047 / r1263049;
return r1263050;
}



Bits error versus x
Results
Initial program 14.6
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 2019152
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))