\frac{1}{x + 1} - \frac{1}{x - 1}\left(2 \cdot \frac{1}{x - 1}\right) \cdot \frac{-1}{x + 1}double f(double x) {
double r5016327 = 1.0;
double r5016328 = x;
double r5016329 = r5016328 + r5016327;
double r5016330 = r5016327 / r5016329;
double r5016331 = r5016328 - r5016327;
double r5016332 = r5016327 / r5016331;
double r5016333 = r5016330 - r5016332;
return r5016333;
}
double f(double x) {
double r5016334 = 2.0;
double r5016335 = 1.0;
double r5016336 = x;
double r5016337 = r5016336 - r5016335;
double r5016338 = r5016335 / r5016337;
double r5016339 = r5016334 * r5016338;
double r5016340 = -1.0;
double r5016341 = r5016336 + r5016335;
double r5016342 = r5016340 / r5016341;
double r5016343 = r5016339 * r5016342;
return r5016343;
}



Bits error versus x
Results
Initial program 14.2
rmApplied flip--28.4
Applied associate-/r/28.4
Applied flip-+14.3
Applied associate-/r/14.2
Applied distribute-lft-out--13.7
Taylor expanded around 0 0.4
rmApplied difference-of-squares0.4
Applied *-un-lft-identity0.4
Applied times-frac0.1
Applied associate-*l*0.1
Final simplification0.1
herbie shell --seed 2019192
(FPCore (x)
:name "Asymptote A"
(- (/ 1.0 (+ x 1.0)) (/ 1.0 (- x 1.0))))