\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x + 1} \cdot \left(-2\right)}{x - 1}double f(double x) {
double r94519 = 1.0;
double r94520 = x;
double r94521 = r94520 + r94519;
double r94522 = r94519 / r94521;
double r94523 = r94520 - r94519;
double r94524 = r94519 / r94523;
double r94525 = r94522 - r94524;
return r94525;
}
double f(double x) {
double r94526 = 1.0;
double r94527 = x;
double r94528 = r94527 + r94526;
double r94529 = r94526 / r94528;
double r94530 = 2.0;
double r94531 = -r94530;
double r94532 = r94529 * r94531;
double r94533 = r94527 - r94526;
double r94534 = r94532 / r94533;
return r94534;
}



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))))