x + y \cdot \frac{z - t}{z - a}\begin{array}{l}
\mathbf{if}\;y \le -9.0289615565925777 \cdot 10^{-57} \lor \neg \left(y \le 4.8077993396027011 \cdot 10^{-154}\right):\\
\;\;\;\;x + \frac{y}{\frac{z - a}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(\left(\sqrt[3]{z - t} \cdot \sqrt[3]{z - t}\right) \cdot y\right) \cdot \frac{\sqrt[3]{z - t}}{z - a}\\
\end{array}double code(double x, double y, double z, double t, double a) {
return (x + (y * ((z - t) / (z - a))));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if (((y <= -9.028961556592578e-57) || !(y <= 4.807799339602701e-154))) {
VAR = (x + (y / ((z - a) / (z - t))));
} else {
VAR = (x + (((cbrt((z - t)) * cbrt((z - t))) * y) * (cbrt((z - t)) / (z - a))));
}
return VAR;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 1.3 |
|---|---|
| Target | 1.2 |
| Herbie | 0.6 |
if y < -9.028961556592578e-57 or 4.807799339602701e-154 < y Initial program 0.6
rmApplied clear-num0.7
rmApplied un-div-inv0.6
if -9.028961556592578e-57 < y < 4.807799339602701e-154Initial program 2.6
rmApplied *-un-lft-identity2.6
Applied add-cube-cbrt2.8
Applied times-frac2.8
Applied associate-*r*0.6
Simplified0.6
Final simplification0.6
herbie shell --seed 2020100
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ x (/ y (/ (- z a) (- z t))))
(+ x (* y (/ (- z t) (- z a)))))