\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x + 1} \cdot \left(\left(-1\right) - 1\right)}{x - 1}double f(double x) {
double r75396 = 1.0;
double r75397 = x;
double r75398 = r75397 + r75396;
double r75399 = r75396 / r75398;
double r75400 = r75397 - r75396;
double r75401 = r75396 / r75400;
double r75402 = r75399 - r75401;
return r75402;
}
double f(double x) {
double r75403 = 1.0;
double r75404 = x;
double r75405 = r75404 + r75403;
double r75406 = r75403 / r75405;
double r75407 = -r75403;
double r75408 = r75407 - r75403;
double r75409 = r75406 * r75408;
double r75410 = r75404 - r75403;
double r75411 = r75409 / r75410;
return r75411;
}



Bits error versus x
Results
Initial program 14.3
rmApplied flip--28.7
Applied associate-/r/28.8
Applied flip-+14.4
Applied associate-/r/14.3
Applied distribute-lft-out--13.7
rmApplied add-log-exp13.7
Applied add-log-exp31.4
Applied sum-log31.4
Applied add-log-exp31.4
Applied add-log-exp31.4
Applied diff-log31.4
Applied diff-log31.4
Simplified0.4
rmApplied difference-of-squares0.4
Applied associate-/r*0.1
rmApplied associate-*l/0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2019306 +o rules:numerics
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))