\frac{1}{x + 1} - \frac{1}{x - 1}\frac{-\frac{1}{1 + x} \cdot 2}{x - 1}double f(double x) {
double r93051 = 1.0;
double r93052 = x;
double r93053 = r93052 + r93051;
double r93054 = r93051 / r93053;
double r93055 = r93052 - r93051;
double r93056 = r93051 / r93055;
double r93057 = r93054 - r93056;
return r93057;
}
double f(double x) {
double r93058 = 1.0;
double r93059 = x;
double r93060 = r93058 + r93059;
double r93061 = r93058 / r93060;
double r93062 = 2.0;
double r93063 = r93061 * r93062;
double r93064 = -r93063;
double r93065 = r93059 - r93058;
double r93066 = r93064 / r93065;
return r93066;
}



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