\frac{1 + \left(2 - \frac{\frac{2}{t}}{1 + \frac{1}{t}}\right) \cdot \left(2 - \frac{\frac{2}{t}}{1 + \frac{1}{t}}\right)}{2 + \left(2 - \frac{\frac{2}{t}}{1 + \frac{1}{t}}\right) \cdot \left(2 - \frac{\frac{2}{t}}{1 + \frac{1}{t}}\right)}\frac{-5 - \frac{\frac{4}{1 + t} + -8}{1 + t}}{-6 - \frac{\frac{4}{1 + t} + -8}{1 + t}}(FPCore (t)
:precision binary64
(/
(+
1.0
(*
(- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t))))
(- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t))))))
(+
2.0
(*
(- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t))))
(- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t))))))))(FPCore (t) :precision binary64 (/ (- -5.0 (/ (+ (/ 4.0 (+ 1.0 t)) -8.0) (+ 1.0 t))) (- -6.0 (/ (+ (/ 4.0 (+ 1.0 t)) -8.0) (+ 1.0 t)))))
double code(double t) {
return (1.0 + ((2.0 - ((2.0 / t) / (1.0 + (1.0 / t)))) * (2.0 - ((2.0 / t) / (1.0 + (1.0 / t)))))) / (2.0 + ((2.0 - ((2.0 / t) / (1.0 + (1.0 / t)))) * (2.0 - ((2.0 / t) / (1.0 + (1.0 / t))))));
}
double code(double t) {
return (-5.0 - (((4.0 / (1.0 + t)) + -8.0) / (1.0 + t))) / (-6.0 - (((4.0 / (1.0 + t)) + -8.0) / (1.0 + t)));
}



Bits error versus t
Results
Initial program 0.0
Simplified0.0
rmApplied frac-2neg_binary64_11120.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020355
(FPCore (t)
:name "Kahan p13 Example 2"
:precision binary64
(/ (+ 1.0 (* (- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t)))) (- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t)))))) (+ 2.0 (* (- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t)))) (- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t))))))))