\frac{1 + \frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}}{2 + \frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}}\frac{1 + t \cdot \frac{4}{2 + \left(t + \frac{1}{t}\right)}}{2 + \log \left(e^{t \cdot \frac{4}{2 + \left(t + \frac{1}{t}\right)}}\right)}(FPCore (t) :precision binary64 (/ (+ 1.0 (* (/ (* 2.0 t) (+ 1.0 t)) (/ (* 2.0 t) (+ 1.0 t)))) (+ 2.0 (* (/ (* 2.0 t) (+ 1.0 t)) (/ (* 2.0 t) (+ 1.0 t))))))
(FPCore (t) :precision binary64 (/ (+ 1.0 (* t (/ 4.0 (+ 2.0 (+ t (/ 1.0 t)))))) (+ 2.0 (log (exp (* t (/ 4.0 (+ 2.0 (+ t (/ 1.0 t))))))))))
double code(double t) {
return (1.0 + (((2.0 * t) / (1.0 + t)) * ((2.0 * t) / (1.0 + t)))) / (2.0 + (((2.0 * t) / (1.0 + t)) * ((2.0 * t) / (1.0 + t))));
}
double code(double t) {
return (1.0 + (t * (4.0 / (2.0 + (t + (1.0 / t)))))) / (2.0 + log(exp(t * (4.0 / (2.0 + (t + (1.0 / t)))))));
}





Bits error versus t
Results
| Alternative 1 | |
|---|---|
| Error | 30.6 |
| Cost | 28288 |
| Alternative 2 | |
|---|---|
| Error | 30.6 |
| Cost | 53696 |

Initial program 0.0
Simplified0.0
rmApplied add-log-exp_binary64_7990.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021043
(FPCore (t)
:name "Kahan p13 Example 1"
:precision binary64
(/ (+ 1.0 (* (/ (* 2.0 t) (+ 1.0 t)) (/ (* 2.0 t) (+ 1.0 t)))) (+ 2.0 (* (/ (* 2.0 t) (+ 1.0 t)) (/ (* 2.0 t) (+ 1.0 t))))))