\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{-1}{x}}{x + 1}double f(double x) {
double r2515586 = 1.0;
double r2515587 = x;
double r2515588 = r2515587 + r2515586;
double r2515589 = r2515586 / r2515588;
double r2515590 = r2515586 / r2515587;
double r2515591 = r2515589 - r2515590;
return r2515591;
}
double f(double x) {
double r2515592 = -1.0;
double r2515593 = x;
double r2515594 = r2515592 / r2515593;
double r2515595 = 1.0;
double r2515596 = r2515593 + r2515595;
double r2515597 = r2515594 / r2515596;
return r2515597;
}



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