\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{1}{x + 1} \cdot \left(-2\right)}{x - 1}double f(double x) {
double r112653 = 1.0;
double r112654 = x;
double r112655 = r112654 + r112653;
double r112656 = r112653 / r112655;
double r112657 = r112654 - r112653;
double r112658 = r112653 / r112657;
double r112659 = r112656 - r112658;
return r112659;
}
double f(double x) {
double r112660 = 1.0;
double r112661 = x;
double r112662 = r112661 + r112660;
double r112663 = r112660 / r112662;
double r112664 = 2.0;
double r112665 = -r112664;
double r112666 = r112663 * r112665;
double r112667 = r112661 - r112660;
double r112668 = r112666 / r112667;
return r112668;
}



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
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 2019323
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))