\frac{1}{x - 1} + \frac{x}{x + 1}\frac{1}{x - 1} + \frac{x}{x + 1}double f(double x) {
double r107408 = 1.0;
double r107409 = x;
double r107410 = r107409 - r107408;
double r107411 = r107408 / r107410;
double r107412 = r107409 + r107408;
double r107413 = r107409 / r107412;
double r107414 = r107411 + r107413;
return r107414;
}
double f(double x) {
double r107415 = 1.0;
double r107416 = x;
double r107417 = r107416 - r107415;
double r107418 = r107415 / r107417;
double r107419 = r107416 + r107415;
double r107420 = r107416 / r107419;
double r107421 = r107418 + r107420;
return r107421;
}



Bits error versus x
Results
Initial program 0.0
rmApplied flip--0.0
Applied associate-/r/0.0
rmApplied div-inv0.0
Applied associate-*l*0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019304
(FPCore (x)
:name "Asymptote B"
:precision binary64
(+ (/ 1 (- x 1)) (/ x (+ x 1))))