\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x - 1} \cdot \left(-2\right)}{x + 1}double f(double x) {
double r114615 = 1.0;
double r114616 = x;
double r114617 = r114616 + r114615;
double r114618 = r114615 / r114617;
double r114619 = r114616 - r114615;
double r114620 = r114615 / r114619;
double r114621 = r114618 - r114620;
return r114621;
}
double f(double x) {
double r114622 = 1.0;
double r114623 = x;
double r114624 = r114623 - r114622;
double r114625 = r114622 / r114624;
double r114626 = 2.0;
double r114627 = -r114626;
double r114628 = r114625 * r114627;
double r114629 = r114623 + r114622;
double r114630 = r114628 / r114629;
return r114630;
}



Bits error versus x
Results
Initial program 14.3
rmApplied flip--28.8
Applied associate-/r/28.8
Applied flip-+14.4
Applied associate-/r/14.3
Applied distribute-lft-out--13.7
Taylor expanded around 0 0.4
rmApplied difference-of-squares0.4
Applied add-sqr-sqrt0.4
Applied times-frac0.1
Applied associate-*l*0.1
rmApplied associate-*l/0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2019235
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))