\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{-2}{x + 1}}{x - 1}double f(double x) {
double r5447032 = 1.0;
double r5447033 = x;
double r5447034 = r5447033 + r5447032;
double r5447035 = r5447032 / r5447034;
double r5447036 = r5447033 - r5447032;
double r5447037 = r5447032 / r5447036;
double r5447038 = r5447035 - r5447037;
return r5447038;
}
double f(double x) {
double r5447039 = -2.0;
double r5447040 = x;
double r5447041 = 1.0;
double r5447042 = r5447040 + r5447041;
double r5447043 = r5447039 / r5447042;
double r5447044 = r5447040 - r5447041;
double r5447045 = r5447043 / r5447044;
return r5447045;
}



Bits error versus x
Results
Initial program 14.4
rmApplied flip--28.7
Applied associate-/r/28.7
Applied flip-+14.5
Applied associate-/r/14.4
Applied distribute-lft-out--13.9
Taylor expanded around 0 0.3
rmApplied difference-of-squares0.3
Applied *-un-lft-identity0.3
Applied times-frac0.1
Applied associate-*l*0.1
Simplified0.1
rmApplied associate-*r/0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2019164 +o rules:numerics
(FPCore (x)
:name "Asymptote A"
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))