\frac{1}{x + 1} - \frac{1}{x - 1}\frac{\frac{-2}{x + -1}}{x + 1}double f(double x) {
double r6514089 = 1.0;
double r6514090 = x;
double r6514091 = r6514090 + r6514089;
double r6514092 = r6514089 / r6514091;
double r6514093 = r6514090 - r6514089;
double r6514094 = r6514089 / r6514093;
double r6514095 = r6514092 - r6514094;
return r6514095;
}
double f(double x) {
double r6514096 = -2.0;
double r6514097 = x;
double r6514098 = -1.0;
double r6514099 = r6514097 + r6514098;
double r6514100 = r6514096 / r6514099;
double r6514101 = 1.0;
double r6514102 = r6514097 + r6514101;
double r6514103 = r6514100 / r6514102;
return r6514103;
}



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-*l/0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2019164
(FPCore (x)
:name "Asymptote A"
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))