\frac{1}{x + 1} - \frac{1}{x}\frac{-1}{\mathsf{fma}\left(x, x, x\right)}double f(double x) {
double r1613585 = 1.0;
double r1613586 = x;
double r1613587 = r1613586 + r1613585;
double r1613588 = r1613585 / r1613587;
double r1613589 = r1613585 / r1613586;
double r1613590 = r1613588 - r1613589;
return r1613590;
}
double f(double x) {
double r1613591 = -1.0;
double r1613592 = x;
double r1613593 = fma(r1613592, r1613592, r1613592);
double r1613594 = r1613591 / r1613593;
return r1613594;
}



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