\frac{1}{x + 1} - \frac{1}{x - 1}\left(2 \cdot \frac{1}{x - 1}\right) \cdot \frac{-1}{x + 1}double f(double x) {
double r4704613 = 1.0;
double r4704614 = x;
double r4704615 = r4704614 + r4704613;
double r4704616 = r4704613 / r4704615;
double r4704617 = r4704614 - r4704613;
double r4704618 = r4704613 / r4704617;
double r4704619 = r4704616 - r4704618;
return r4704619;
}
double f(double x) {
double r4704620 = 2.0;
double r4704621 = 1.0;
double r4704622 = x;
double r4704623 = r4704622 - r4704621;
double r4704624 = r4704621 / r4704623;
double r4704625 = r4704620 * r4704624;
double r4704626 = -1.0;
double r4704627 = r4704622 + r4704621;
double r4704628 = r4704626 / r4704627;
double r4704629 = r4704625 * r4704628;
return r4704629;
}



Bits error versus x
Results
Initial program 14.7
rmApplied flip--28.7
Applied associate-/r/28.7
Applied flip-+14.7
Applied associate-/r/14.7
Applied distribute-lft-out--14.1
Taylor expanded around 0 0.3
rmApplied difference-of-squares0.3
Applied *-un-lft-identity0.3
Applied times-frac0.1
Applied associate-*l*0.1
Final simplification0.1
herbie shell --seed 2019172
(FPCore (x)
:name "Asymptote A"
(- (/ 1.0 (+ x 1.0)) (/ 1.0 (- x 1.0))))