\frac{1}{x + 1} - \frac{1}{x - 1}\frac{2 \cdot \frac{-1}{x + 1}}{x - 1}double f(double x) {
double r6444739 = 1.0;
double r6444740 = x;
double r6444741 = r6444740 + r6444739;
double r6444742 = r6444739 / r6444741;
double r6444743 = r6444740 - r6444739;
double r6444744 = r6444739 / r6444743;
double r6444745 = r6444742 - r6444744;
return r6444745;
}
double f(double x) {
double r6444746 = 2.0;
double r6444747 = 1.0;
double r6444748 = -r6444747;
double r6444749 = x;
double r6444750 = r6444749 + r6444747;
double r6444751 = r6444748 / r6444750;
double r6444752 = r6444746 * r6444751;
double r6444753 = r6444749 - r6444747;
double r6444754 = r6444752 / r6444753;
return r6444754;
}



Bits error versus x
Results
Initial program 14.8
rmApplied flip--29.2
Applied associate-/r/29.2
Applied flip-+14.8
Applied associate-/r/14.8
Applied distribute-lft-out--14.2
Taylor expanded around 0 0.4
rmApplied difference-of-squares0.5
Applied associate-/r*0.1
rmApplied associate-*l/0.1
Final simplification0.1
herbie shell --seed 2019174
(FPCore (x)
:name "Asymptote A"
(- (/ 1.0 (+ x 1.0)) (/ 1.0 (- x 1.0))))