\frac{1}{x + 1} - \frac{1}{x}\frac{-1}{\mathsf{fma}\left(x, x, x\right)}double f(double x) {
double r1523154 = 1.0;
double r1523155 = x;
double r1523156 = r1523155 + r1523154;
double r1523157 = r1523154 / r1523156;
double r1523158 = r1523154 / r1523155;
double r1523159 = r1523157 - r1523158;
return r1523159;
}
double f(double x) {
double r1523160 = -1.0;
double r1523161 = x;
double r1523162 = fma(r1523161, r1523161, r1523161);
double r1523163 = r1523160 / r1523162;
return r1523163;
}



Bits error versus x
Initial program 14.2
rmApplied frac-sub13.5
Simplified13.5
Simplified13.5
rmApplied *-un-lft-identity13.5
Applied associate-/r*13.5
Simplified0.4
Final simplification0.4
herbie shell --seed 2019151 +o rules:numerics
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))