\frac{1}{x + 1} - \frac{1}{x}\frac{\frac{1}{1 + x}}{-x} \cdot 1double f(double x) {
double r33778 = 1.0;
double r33779 = x;
double r33780 = r33779 + r33778;
double r33781 = r33778 / r33780;
double r33782 = r33778 / r33779;
double r33783 = r33781 - r33782;
return r33783;
}
double f(double x) {
double r33784 = 1.0;
double r33785 = x;
double r33786 = r33784 + r33785;
double r33787 = r33784 / r33786;
double r33788 = -r33785;
double r33789 = r33787 / r33788;
double r33790 = r33789 * r33784;
return r33790;
}



Bits error versus x
Results
Initial program 14.6
rmApplied frac-sub14.1
Simplified14.1
Simplified14.1
rmApplied frac-2neg14.1
Simplified0.4
Simplified0.4
rmApplied *-un-lft-identity0.4
Applied times-frac0.4
Simplified0.4
Simplified0.1
Final simplification0.1
herbie shell --seed 2019196
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1.0 (+ x 1.0)) (/ 1.0 x)))