\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x + 1}}{x - 1} \cdot \left(-2\right)double f(double x) {
double r137967 = 1.0;
double r137968 = x;
double r137969 = r137968 + r137967;
double r137970 = r137967 / r137969;
double r137971 = r137968 - r137967;
double r137972 = r137967 / r137971;
double r137973 = r137970 - r137972;
return r137973;
}
double f(double x) {
double r137974 = 1.0;
double r137975 = x;
double r137976 = r137975 + r137974;
double r137977 = r137974 / r137976;
double r137978 = r137975 - r137974;
double r137979 = r137977 / r137978;
double r137980 = 2.0;
double r137981 = -r137980;
double r137982 = r137979 * r137981;
return r137982;
}



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