\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x + 1} \cdot \left(-2\right)}{x - 1}double f(double x) {
double r94261 = 1.0;
double r94262 = x;
double r94263 = r94262 + r94261;
double r94264 = r94261 / r94263;
double r94265 = r94262 - r94261;
double r94266 = r94261 / r94265;
double r94267 = r94264 - r94266;
return r94267;
}
double f(double x) {
double r94268 = 1.0;
double r94269 = x;
double r94270 = r94269 + r94268;
double r94271 = r94268 / r94270;
double r94272 = 2.0;
double r94273 = -r94272;
double r94274 = r94271 * r94273;
double r94275 = r94269 - r94268;
double r94276 = r94274 / r94275;
return r94276;
}



Bits error versus x
Results
Initial program 14.7
rmApplied flip--29.4
Applied associate-/r/29.4
Applied flip-+14.7
Applied associate-/r/14.7
Applied distribute-lft-out--14.1
Taylor expanded around 0 0.4
rmApplied difference-of-squares0.4
Applied associate-/r*0.1
rmApplied associate-*l/0.1
Final simplification0.1
herbie shell --seed 2019323 +o rules:numerics
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))