\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x + 1} \cdot \left(-2\right)}{x - 1}double f(double x) {
double r184353 = 1.0;
double r184354 = x;
double r184355 = r184354 + r184353;
double r184356 = r184353 / r184355;
double r184357 = r184354 - r184353;
double r184358 = r184353 / r184357;
double r184359 = r184356 - r184358;
return r184359;
}
double f(double x) {
double r184360 = 1.0;
double r184361 = x;
double r184362 = r184361 + r184360;
double r184363 = r184360 / r184362;
double r184364 = 2.0;
double r184365 = -r184364;
double r184366 = r184363 * r184365;
double r184367 = r184361 - r184360;
double r184368 = r184366 / r184367;
return r184368;
}



Bits error versus x
Results
Initial program 15.0
rmApplied flip--29.0
Applied associate-/r/29.0
Applied flip-+15.1
Applied associate-/r/15.0
Applied distribute-lft-out--14.3
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 2020045 +o rules:numerics
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))