\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x + 1}}{x - 1} \cdot \left(-2\right)double f(double x) {
double r108970 = 1.0;
double r108971 = x;
double r108972 = r108971 + r108970;
double r108973 = r108970 / r108972;
double r108974 = r108971 - r108970;
double r108975 = r108970 / r108974;
double r108976 = r108973 - r108975;
return r108976;
}
double f(double x) {
double r108977 = 1.0;
double r108978 = x;
double r108979 = r108978 + r108977;
double r108980 = r108977 / r108979;
double r108981 = r108978 - r108977;
double r108982 = r108980 / r108981;
double r108983 = 2.0;
double r108984 = -r108983;
double r108985 = r108982 * r108984;
return r108985;
}



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