\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x + 1}}{x - 1} \cdot \left(-2\right)double f(double x) {
double r143508 = 1.0;
double r143509 = x;
double r143510 = r143509 + r143508;
double r143511 = r143508 / r143510;
double r143512 = r143509 - r143508;
double r143513 = r143508 / r143512;
double r143514 = r143511 - r143513;
return r143514;
}
double f(double x) {
double r143515 = 1.0;
double r143516 = x;
double r143517 = r143516 + r143515;
double r143518 = r143515 / r143517;
double r143519 = r143516 - r143515;
double r143520 = r143518 / r143519;
double r143521 = 2.0;
double r143522 = -r143521;
double r143523 = r143520 * r143522;
return r143523;
}



Bits error versus x
Results
Initial program 14.3
rmApplied flip--28.6
Applied associate-/r/28.7
Applied flip-+14.4
Applied associate-/r/14.3
Applied distribute-lft-out--13.7
Taylor expanded around 0 0.4
rmApplied difference-of-squares0.4
Applied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2020059
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))