\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x + 1}}{x - 1} \cdot \left(-2\right)double f(double x) {
double r98840 = 1.0;
double r98841 = x;
double r98842 = r98841 + r98840;
double r98843 = r98840 / r98842;
double r98844 = r98841 - r98840;
double r98845 = r98840 / r98844;
double r98846 = r98843 - r98845;
return r98846;
}
double f(double x) {
double r98847 = 1.0;
double r98848 = x;
double r98849 = r98848 + r98847;
double r98850 = r98847 / r98849;
double r98851 = r98848 - r98847;
double r98852 = r98850 / r98851;
double r98853 = 2.0;
double r98854 = -r98853;
double r98855 = r98852 * r98854;
return r98855;
}



Bits error versus x
Results
Initial program 14.1
rmApplied flip--29.2
Applied associate-/r/29.2
Applied flip-+14.2
Applied associate-/r/14.1
Applied distribute-lft-out--13.6
Taylor expanded around 0 0.3
rmApplied difference-of-squares0.3
Applied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2019212
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))