\frac{1}{x + 1} - \frac{1}{x - 1}1 \cdot \frac{\left(-2\right) \cdot \frac{1}{x + 1}}{x - 1}double f(double x) {
double r144430 = 1.0;
double r144431 = x;
double r144432 = r144431 + r144430;
double r144433 = r144430 / r144432;
double r144434 = r144431 - r144430;
double r144435 = r144430 / r144434;
double r144436 = r144433 - r144435;
return r144436;
}
double f(double x) {
double r144437 = 1.0;
double r144438 = 2.0;
double r144439 = -r144438;
double r144440 = 1.0;
double r144441 = x;
double r144442 = r144441 + r144437;
double r144443 = r144440 / r144442;
double r144444 = r144439 * r144443;
double r144445 = r144441 - r144437;
double r144446 = r144444 / r144445;
double r144447 = r144437 * r144446;
return r144447;
}



Bits error versus x
Results
Initial program 14.5
rmApplied flip--28.8
Applied associate-/r/28.8
Applied flip-+14.5
Applied associate-/r/14.5
Applied distribute-lft-out--13.8
Taylor expanded around 0 0.3
rmApplied div-inv0.3
Applied associate-*l*0.3
Simplified0.1
rmApplied div-inv0.1
Final simplification0.1
herbie shell --seed 2020027
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))