1 - \frac{1}{2 + \left(2 - \frac{\frac{2}{t}}{1 + \frac{1}{t}}\right) \cdot \left(2 - \frac{\frac{2}{t}}{1 + \frac{1}{t}}\right)}1 - \frac{1}{2 + {\left(2 - \frac{\frac{2}{t}}{1 + \frac{1}{t}}\right)}^{2}}(FPCore (t)
:precision binary64
(-
1.0
(/
1.0
(+
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 (- 1.0 (/ 1.0 (+ 2.0 (pow (- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t)))) 2.0)))))
double code(double t) {
return 1.0 - (1.0 / (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 1.0 - (1.0 / (2.0 + pow((2.0 - ((2.0 / t) / (1.0 + (1.0 / t)))), 2.0)));
}



Bits error versus t
Results
Initial program 0.0
rmApplied pow1_binary640.0
Applied pow1_binary640.0
Applied pow-sqr_binary640.0
Final simplification0.0
herbie shell --seed 2021118
(FPCore (t)
:name "Kahan p13 Example 3"
:precision binary64
(- 1.0 (/ 1.0 (+ 2.0 (* (- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t)))) (- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t)))))))))