\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x + 1}}{x - 1} \cdot \left(-2\right)double f(double x) {
double r109443 = 1.0;
double r109444 = x;
double r109445 = r109444 + r109443;
double r109446 = r109443 / r109445;
double r109447 = r109444 - r109443;
double r109448 = r109443 / r109447;
double r109449 = r109446 - r109448;
return r109449;
}
double f(double x) {
double r109450 = 1.0;
double r109451 = x;
double r109452 = r109451 + r109450;
double r109453 = r109450 / r109452;
double r109454 = r109451 - r109450;
double r109455 = r109453 / r109454;
double r109456 = 2.0;
double r109457 = -r109456;
double r109458 = r109455 * r109457;
return r109458;
}



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