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) \cdot \left(2 - \frac{\sqrt{2}}{\sqrt[3]{t} \cdot \sqrt[3]{t}} \cdot \frac{\frac{\sqrt{2}}{\sqrt[3]{t}}}{1 + \frac{1}{t}}\right)}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 + ((2.0 - ((2.0 / t) / (1.0 + (1.0 / t)))) * (2.0 - ((sqrt(2.0) / (cbrt(t) * cbrt(t))) * ((sqrt(2.0) / cbrt(t)) / (1.0 + (1.0 / t)))))))));
}



Bits error versus t
Results
Initial program 0.0
rmApplied *-un-lft-identity0.0
Applied add-cube-cbrt0.0
Applied add-sqr-sqrt0.0
Applied times-frac0.0
Applied times-frac0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020078 +o rules:numerics
(FPCore (t)
:name "Kahan p13 Example 3"
:precision binary64
(- 1 (/ 1 (+ 2 (* (- 2 (/ (/ 2 t) (+ 1 (/ 1 t)))) (- 2 (/ (/ 2 t) (+ 1 (/ 1 t)))))))))