\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{-1}{x}}{x + 1}double f(double x) {
double r2119026 = 1.0;
double r2119027 = x;
double r2119028 = r2119027 + r2119026;
double r2119029 = r2119026 / r2119028;
double r2119030 = r2119026 / r2119027;
double r2119031 = r2119029 - r2119030;
return r2119031;
}
double f(double x) {
double r2119032 = -1.0;
double r2119033 = x;
double r2119034 = r2119032 / r2119033;
double r2119035 = 1.0;
double r2119036 = r2119033 + r2119035;
double r2119037 = r2119034 / r2119036;
return r2119037;
}



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