\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\begin{array}{l}
\mathbf{if}\;a \le -6.3087141949950974 \cdot 10^{-146}:\\
\;\;\;\;\left(x + y\right) - \left(z - t\right) \cdot \frac{\frac{\frac{y}{\sqrt[3]{a - t}}}{\sqrt[3]{a - t}}}{\sqrt[3]{a - t}}\\
\mathbf{elif}\;a \le 6.9294151038589965 \cdot 10^{-69}:\\
\;\;\;\;\frac{z \cdot y}{t} + x\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - {\left(\frac{\frac{{\left(\sqrt[3]{z - t}\right)}^{3}}{\sqrt[3]{a - t}}}{\frac{\sqrt[3]{a - t}}{\frac{y}{\sqrt[3]{a - t}}}}\right)}^{1}\\
\end{array}double code(double x, double y, double z, double t, double a) {
return ((double) (((double) (x + y)) - ((double) (((double) (((double) (z - t)) * y)) / ((double) (a - t))))));
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if ((a <= -6.308714194995097e-146)) {
VAR = ((double) (((double) (x + y)) - ((double) (((double) (z - t)) * ((double) (((double) (((double) (y / ((double) cbrt(((double) (a - t)))))) / ((double) cbrt(((double) (a - t)))))) / ((double) cbrt(((double) (a - t))))))))));
} else {
double VAR_1;
if ((a <= 6.929415103858996e-69)) {
VAR_1 = ((double) (((double) (((double) (z * y)) / t)) + x));
} else {
VAR_1 = ((double) (((double) (x + y)) - ((double) pow(((double) (((double) (((double) pow(((double) cbrt(((double) (z - t)))), 3.0)) / ((double) cbrt(((double) (a - t)))))) / ((double) (((double) cbrt(((double) (a - t)))) / ((double) (y / ((double) cbrt(((double) (a - t)))))))))), 1.0))));
}
VAR = VAR_1;
}
return VAR;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 16.1 |
|---|---|
| Target | 8.3 |
| Herbie | 9.5 |
if a < -6.3087141949950974e-146Initial program 14.9
rmApplied add-cube-cbrt15.0
Applied times-frac8.7
rmApplied div-inv8.7
Applied associate-*l*9.4
Simplified9.4
if -6.3087141949950974e-146 < a < 6.9294151038589965e-69Initial program 18.8
Taylor expanded around inf 11.0
if 6.9294151038589965e-69 < a Initial program 14.9
rmApplied add-cube-cbrt15.0
Applied times-frac7.8
rmApplied add-cube-cbrt7.9
Applied times-frac7.9
Applied associate-*l*7.8
rmApplied pow17.8
Applied pow17.8
Applied pow-prod-down7.8
Applied pow17.8
Applied pow-prod-down7.8
Simplified8.2
Final simplification9.5
herbie shell --seed 2020171
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
:precision binary64
:herbie-target
(if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -1.3664970889390727e-07) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 1.4754293444577233e-239) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y))))
(- (+ x y) (/ (* (- z t) y) (- a t))))