\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x + 1}}{x - 1} \cdot \left(-2\right)double f(double x) {
double r115408 = 1.0;
double r115409 = x;
double r115410 = r115409 + r115408;
double r115411 = r115408 / r115410;
double r115412 = r115409 - r115408;
double r115413 = r115408 / r115412;
double r115414 = r115411 - r115413;
return r115414;
}
double f(double x) {
double r115415 = 1.0;
double r115416 = x;
double r115417 = r115416 + r115415;
double r115418 = r115415 / r115417;
double r115419 = r115416 - r115415;
double r115420 = r115418 / r115419;
double r115421 = 2.0;
double r115422 = -r115421;
double r115423 = r115420 * r115422;
return r115423;
}



Bits error versus x
Results
Initial program 14.0
rmApplied flip--28.8
Applied associate-/r/28.9
Applied flip-+14.1
Applied associate-/r/14.0
Applied distribute-lft-out--13.4
rmApplied difference-of-squares13.4
Applied associate-/r*13.4
Taylor expanded around 0 0.1
Final simplification0.1
herbie shell --seed 2020083
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))