\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{-2}{1 + x}}{x - 1}double f(double x) {
double r2073868 = 1.0;
double r2073869 = x;
double r2073870 = r2073869 + r2073868;
double r2073871 = r2073868 / r2073870;
double r2073872 = r2073869 - r2073868;
double r2073873 = r2073868 / r2073872;
double r2073874 = r2073871 - r2073873;
return r2073874;
}
double f(double x) {
double r2073875 = -2.0;
double r2073876 = 1.0;
double r2073877 = x;
double r2073878 = r2073876 + r2073877;
double r2073879 = r2073875 / r2073878;
double r2073880 = r2073877 - r2073876;
double r2073881 = r2073879 / r2073880;
return r2073881;
}



Bits error versus x
Results
Initial program 14.2
rmApplied flip--28.9
Applied associate-/r/29.0
Applied flip-+14.2
Applied associate-/r/14.2
Applied distribute-lft-out--13.6
Taylor expanded around -inf 0.4
rmApplied difference-of-squares0.4
Applied associate-/r*0.1
rmApplied associate-*l/0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2019151
(FPCore (x)
:name "Asymptote A"
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))