\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 r92112 = 1.0;
double r92113 = x;
double r92114 = r92113 + r92112;
double r92115 = r92112 / r92114;
double r92116 = r92113 - r92112;
double r92117 = r92112 / r92116;
double r92118 = r92115 - r92117;
return r92118;
}
double f(double x) {
double r92119 = 1.0;
double r92120 = x;
double r92121 = r92120 + r92119;
double r92122 = r92119 / r92121;
double r92123 = -r92119;
double r92124 = r92123 - r92119;
double r92125 = r92122 * r92124;
double r92126 = r92120 - r92119;
double r92127 = r92125 / r92126;
return r92127;
}



Bits error versus x
Results
Initial program 14.7
rmApplied flip--29.4
Applied associate-/r/29.4
Applied flip-+14.7
Applied associate-/r/14.7
Applied distribute-lft-out--14.1
rmApplied add-cbrt-cube14.1
Simplified0.4
rmApplied difference-of-squares0.4
Applied associate-/r*0.1
rmApplied pow10.1
Applied pow10.1
Applied pow-prod-down0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2019323 +o rules:numerics
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))