\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{-2}{1 + x}}{x - 1}double f(double x) {
double r3532653 = 1.0;
double r3532654 = x;
double r3532655 = r3532654 + r3532653;
double r3532656 = r3532653 / r3532655;
double r3532657 = r3532654 - r3532653;
double r3532658 = r3532653 / r3532657;
double r3532659 = r3532656 - r3532658;
return r3532659;
}
double f(double x) {
double r3532660 = -2.0;
double r3532661 = 1.0;
double r3532662 = x;
double r3532663 = r3532661 + r3532662;
double r3532664 = r3532660 / r3532663;
double r3532665 = r3532662 - r3532661;
double r3532666 = r3532664 / r3532665;
return r3532666;
}



Bits error versus x
Results
Initial program 14.5
rmApplied frac-sub13.9
Simplified13.8
Simplified13.8
rmApplied difference-of-sqr--113.8
Applied associate-/r*13.8
Simplified0.1
Final simplification0.1
herbie shell --seed 2019133
(FPCore (x)
:name "Asymptote A"
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))