\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{-1}{x}}{x + 1}double f(double x) {
double r1322402 = 1.0;
double r1322403 = x;
double r1322404 = r1322403 + r1322402;
double r1322405 = r1322402 / r1322404;
double r1322406 = r1322402 / r1322403;
double r1322407 = r1322405 - r1322406;
return r1322407;
}
double f(double x) {
double r1322408 = -1.0;
double r1322409 = x;
double r1322410 = r1322408 / r1322409;
double r1322411 = 1.0;
double r1322412 = r1322409 + r1322411;
double r1322413 = r1322410 / r1322412;
return r1322413;
}



Bits error versus x
Results
Initial program 15.1
rmApplied frac-sub14.5
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 2019139
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))