\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 + \frac{t \cdot 2}{1 + t} \cdot \frac{t \cdot 2}{1 + t}}{\log \left(e^{\frac{t \cdot 2}{1 + t} \cdot \frac{t \cdot 2}{1 + t}}\right) + 2}double f(double t) {
double r2236795 = 1.0;
double r2236796 = 2.0;
double r2236797 = t;
double r2236798 = r2236796 * r2236797;
double r2236799 = r2236795 + r2236797;
double r2236800 = r2236798 / r2236799;
double r2236801 = r2236800 * r2236800;
double r2236802 = r2236795 + r2236801;
double r2236803 = r2236796 + r2236801;
double r2236804 = r2236802 / r2236803;
return r2236804;
}
double f(double t) {
double r2236805 = 1.0;
double r2236806 = t;
double r2236807 = 2.0;
double r2236808 = r2236806 * r2236807;
double r2236809 = r2236805 + r2236806;
double r2236810 = r2236808 / r2236809;
double r2236811 = r2236810 * r2236810;
double r2236812 = r2236805 + r2236811;
double r2236813 = exp(r2236811);
double r2236814 = log(r2236813);
double r2236815 = r2236814 + r2236807;
double r2236816 = r2236812 / r2236815;
return r2236816;
}



Bits error versus t
Results
Initial program 0.0
rmApplied add-log-exp0.0
Final simplification0.0
herbie shell --seed 2019162 +o rules:numerics
(FPCore (t)
:name "Kahan p13 Example 1"
(/ (+ 1 (* (/ (* 2 t) (+ 1 t)) (/ (* 2 t) (+ 1 t)))) (+ 2 (* (/ (* 2 t) (+ 1 t)) (/ (* 2 t) (+ 1 t))))))