\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{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}}{2 + \log \left(e^{{\left(\frac{2 \cdot t}{1 + t}\right)}^{2}}\right)}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 + (((2.0 * t) / (1.0 + t)) * ((2.0 * t) / (1.0 + t)))) / (2.0 + log(exp(pow(((2.0 * t) / (1.0 + t)), 2.0)))));
}



Bits error versus t
Results
Initial program 0.1
rmApplied add-log-exp0.1
Simplified16.4
rmApplied pow1/216.4
Applied pow-pow0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2020100
(FPCore (t)
:name "Kahan p13 Example 1"
:precision binary64
(/ (+ 1 (* (/ (* 2 t) (+ 1 t)) (/ (* 2 t) (+ 1 t)))) (+ 2 (* (/ (* 2 t) (+ 1 t)) (/ (* 2 t) (+ 1 t))))))