x + \frac{y \cdot \left(z - x\right)}{t}\begin{array}{l}
\mathbf{if}\;x \le -2.0778965796828648 \cdot 10^{-103} \lor \neg \left(x \le 9.10716533387276044 \cdot 10^{-93}\right):\\
\;\;\;\;x + \frac{y}{t} \cdot \left(z - x\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{\sqrt[3]{y} \cdot \sqrt[3]{y}}{1} \cdot \left(\frac{\sqrt[3]{y}}{t} \cdot \left(z - x\right)\right)\\
\end{array}double code(double x, double y, double z, double t) {
return (x + ((y * (z - x)) / t));
}
double code(double x, double y, double z, double t) {
double temp;
if (((x <= -2.0778965796828648e-103) || !(x <= 9.10716533387276e-93))) {
temp = (x + ((y / t) * (z - x)));
} else {
temp = (x + (((cbrt(y) * cbrt(y)) / 1.0) * ((cbrt(y) / t) * (z - x))));
}
return temp;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 6.8 |
|---|---|
| Target | 2.1 |
| Herbie | 1.9 |
if x < -2.0778965796828648e-103 or 9.10716533387276e-93 < x Initial program 7.9
rmApplied associate-/l*6.7
rmApplied associate-/r/0.5
if -2.0778965796828648e-103 < x < 9.10716533387276e-93Initial program 5.0
rmApplied associate-/l*5.0
rmApplied associate-/r/4.8
rmApplied *-un-lft-identity4.8
Applied add-cube-cbrt5.5
Applied times-frac5.5
Applied associate-*l*4.3
Final simplification1.9
herbie shell --seed 2020060
(FPCore (x y z t)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, D"
:precision binary64
:herbie-target
(- x (+ (* x (/ y t)) (* (- z) (/ y t))))
(+ x (/ (* y (- z x)) t)))