\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x + 1} \cdot \left(-2\right)}{x - 1}double f(double x) {
double r76933 = 1.0;
double r76934 = x;
double r76935 = r76934 + r76933;
double r76936 = r76933 / r76935;
double r76937 = r76934 - r76933;
double r76938 = r76933 / r76937;
double r76939 = r76936 - r76938;
return r76939;
}
double f(double x) {
double r76940 = 1.0;
double r76941 = x;
double r76942 = r76941 + r76940;
double r76943 = r76940 / r76942;
double r76944 = 2.0;
double r76945 = -r76944;
double r76946 = r76943 * r76945;
double r76947 = r76941 - r76940;
double r76948 = r76946 / r76947;
return r76948;
}



Bits error versus x
Results
Initial program 14.5
rmApplied flip--29.4
Applied associate-/r/29.4
Applied flip-+14.6
Applied associate-/r/14.5
Applied distribute-lft-out--13.9
Taylor expanded around 0 0.4
rmApplied difference-of-squares0.4
Applied associate-/r*0.1
rmApplied associate-*l/0.1
Final simplification0.1
herbie shell --seed 2019209
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))