\frac{1}{x + 1} - \frac{1}{x}\frac{-1}{\mathsf{fma}\left(x, x, x\right)}double f(double x) {
double r1597452 = 1.0;
double r1597453 = x;
double r1597454 = r1597453 + r1597452;
double r1597455 = r1597452 / r1597454;
double r1597456 = r1597452 / r1597453;
double r1597457 = r1597455 - r1597456;
return r1597457;
}
double f(double x) {
double r1597458 = -1.0;
double r1597459 = x;
double r1597460 = fma(r1597459, r1597459, r1597459);
double r1597461 = r1597458 / r1597460;
return r1597461;
}



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