\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\begin{array}{l}
\mathbf{if}\;a \le -1.01675393957722618 \cdot 10^{-117}:\\
\;\;\;\;\left(x + y\right) - \left(\left(\sqrt[3]{z - t} \cdot \sqrt[3]{z - t}\right) \cdot \left(\sqrt[3]{y} \cdot \sqrt[3]{y}\right)\right) \cdot \frac{\sqrt[3]{z - t}}{\frac{a - t}{\sqrt[3]{y}}}\\
\mathbf{elif}\;a \le 4.2967849802929143 \cdot 10^{-186}:\\
\;\;\;\;\frac{z \cdot y}{t} + x\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - \left(\sqrt[3]{y} \cdot \sqrt[3]{y}\right) \cdot \frac{z - t}{\frac{a - t}{\sqrt[3]{y}}}\\
\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 <= -1.0167539395772262e-117)) {
VAR = ((double) (((double) (x + y)) - ((double) (((double) (((double) (((double) cbrt(((double) (z - t)))) * ((double) cbrt(((double) (z - t)))))) * ((double) (((double) cbrt(y)) * ((double) cbrt(y)))))) * ((double) (((double) cbrt(((double) (z - t)))) / ((double) (((double) (a - t)) / ((double) cbrt(y))))))))));
} else {
double VAR_1;
if ((a <= 4.296784980292914e-186)) {
VAR_1 = ((double) (((double) (((double) (z * y)) / t)) + x));
} else {
VAR_1 = ((double) (((double) (x + y)) - ((double) (((double) (((double) cbrt(y)) * ((double) cbrt(y)))) * ((double) (((double) (z - t)) / ((double) (((double) (a - t)) / ((double) cbrt(y))))))))));
}
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.3 |
|---|---|
| Target | 8.1 |
| Herbie | 9.3 |
if a < -1.01675393957722618e-117Initial program 14.9
rmApplied associate-/l*8.9
rmApplied add-cube-cbrt9.0
Applied *-un-lft-identity9.0
Applied times-frac9.0
Applied add-cube-cbrt9.0
Applied times-frac9.4
Simplified9.4
if -1.01675393957722618e-117 < a < 4.2967849802929143e-186Initial program 20.6
Taylor expanded around inf 9.4
if 4.2967849802929143e-186 < a Initial program 14.9
rmApplied associate-/l*9.9
rmApplied add-cube-cbrt10.1
Applied *-un-lft-identity10.1
Applied times-frac10.1
Applied *-un-lft-identity10.1
Applied times-frac9.1
Simplified9.1
Final simplification9.3
herbie shell --seed 2020162
(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))))