\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x + 1}}{x - 1} \cdot \left(-2\right)double f(double x) {
double r85572 = 1.0;
double r85573 = x;
double r85574 = r85573 + r85572;
double r85575 = r85572 / r85574;
double r85576 = r85573 - r85572;
double r85577 = r85572 / r85576;
double r85578 = r85575 - r85577;
return r85578;
}
double f(double x) {
double r85579 = 1.0;
double r85580 = x;
double r85581 = r85580 + r85579;
double r85582 = r85579 / r85581;
double r85583 = r85580 - r85579;
double r85584 = r85582 / r85583;
double r85585 = 2.0;
double r85586 = -r85585;
double r85587 = r85584 * r85586;
return r85587;
}



Bits error versus x
Results
Initial program 14.3
rmApplied add-cube-cbrt25.8
Applied flip-+28.8
Applied associate-/r/28.8
Applied prod-diff28.9
Simplified27.8
Simplified13.7
Taylor expanded around 0 0.4
rmApplied difference-of-squares0.4
Applied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2019304 +o rules:numerics
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))