\frac{1.0}{x + 1.0} - \frac{1.0}{x - 1.0}\left(2.0 \cdot \frac{1.0}{x - 1.0}\right) \cdot \frac{-1}{x + 1.0}double f(double x) {
double r7027257 = 1.0;
double r7027258 = x;
double r7027259 = r7027258 + r7027257;
double r7027260 = r7027257 / r7027259;
double r7027261 = r7027258 - r7027257;
double r7027262 = r7027257 / r7027261;
double r7027263 = r7027260 - r7027262;
return r7027263;
}
double f(double x) {
double r7027264 = 2.0;
double r7027265 = 1.0;
double r7027266 = x;
double r7027267 = r7027266 - r7027265;
double r7027268 = r7027265 / r7027267;
double r7027269 = r7027264 * r7027268;
double r7027270 = -1.0;
double r7027271 = r7027266 + r7027265;
double r7027272 = r7027270 / r7027271;
double r7027273 = r7027269 * r7027272;
return r7027273;
}



Bits error versus x
Results
Initial program 14.9
rmApplied flip--29.6
Applied associate-/r/29.6
Applied flip-+14.9
Applied associate-/r/14.9
Applied distribute-lft-out--14.3
Taylor expanded around 0 0.4
rmApplied difference-of-squares0.4
Applied *-un-lft-identity0.4
Applied times-frac0.1
Applied associate-*l*0.1
Final simplification0.1
herbie shell --seed 2019165
(FPCore (x)
:name "Asymptote A"
(- (/ 1.0 (+ x 1.0)) (/ 1.0 (- x 1.0))))