\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{-1}{x}}{x + 1}double f(double x) {
double r504209 = 1.0;
double r504210 = x;
double r504211 = r504210 + r504209;
double r504212 = r504209 / r504211;
double r504213 = r504209 / r504210;
double r504214 = r504212 - r504213;
return r504214;
}
double f(double x) {
double r504215 = -1.0;
double r504216 = x;
double r504217 = r504215 / r504216;
double r504218 = 1.0;
double r504219 = r504216 + r504218;
double r504220 = r504217 / r504219;
return r504220;
}



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