\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x + 1}}{x - 1} \cdot \left(-2\right)double f(double x) {
double r194146 = 1.0;
double r194147 = x;
double r194148 = r194147 + r194146;
double r194149 = r194146 / r194148;
double r194150 = r194147 - r194146;
double r194151 = r194146 / r194150;
double r194152 = r194149 - r194151;
return r194152;
}
double f(double x) {
double r194153 = 1.0;
double r194154 = x;
double r194155 = r194154 + r194153;
double r194156 = r194153 / r194155;
double r194157 = r194154 - r194153;
double r194158 = r194156 / r194157;
double r194159 = 2.0;
double r194160 = -r194159;
double r194161 = r194158 * r194160;
return r194161;
}



Bits error versus x
Results
Initial program 14.4
rmApplied flip--29.2
Applied associate-/r/29.2
Applied flip-+14.4
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 2020047
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))