\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{-2}{1 + x}}{x - 1}double f(double x) {
double r3920490 = 1.0;
double r3920491 = x;
double r3920492 = r3920491 + r3920490;
double r3920493 = r3920490 / r3920492;
double r3920494 = r3920491 - r3920490;
double r3920495 = r3920490 / r3920494;
double r3920496 = r3920493 - r3920495;
return r3920496;
}
double f(double x) {
double r3920497 = -2.0;
double r3920498 = 1.0;
double r3920499 = x;
double r3920500 = r3920498 + r3920499;
double r3920501 = r3920497 / r3920500;
double r3920502 = r3920499 - r3920498;
double r3920503 = r3920501 / r3920502;
return r3920503;
}



Bits error versus x
Results
Initial program 14.7
rmApplied frac-sub14.1
Simplified14.1
Simplified14.1
rmApplied difference-of-sqr--114.1
Applied associate-/r*14.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2019129
(FPCore (x)
:name "Asymptote A"
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))