\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\begin{array}{l}
\mathbf{if}\;a \le -3.44428060091320539 \cdot 10^{-113}:\\
\;\;\;\;\left(x + y\right) - \frac{\sqrt[3]{z - t} \cdot \sqrt[3]{z - t}}{\sqrt[3]{a - t}} \cdot \left(\frac{\sqrt[3]{z - t}}{\sqrt[3]{a - t}} \cdot \frac{y}{\sqrt[3]{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \sqrt[3]{\sqrt[3]{a - t}}}\right)\\
\mathbf{elif}\;a \le 5.4876328087334781 \cdot 10^{-129}:\\
\;\;\;\;\frac{z \cdot y}{t} + x\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - \left(\frac{z - t}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \frac{\sqrt[3]{y} \cdot \sqrt[3]{y}}{\sqrt[3]{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}}}\right) \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{\sqrt[3]{a - t}}}\\
\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 <= -3.4442806009132054e-113)) {
VAR = ((double) (((double) (x + y)) - ((double) (((double) (((double) (((double) cbrt(((double) (z - t)))) * ((double) cbrt(((double) (z - t)))))) / ((double) cbrt(((double) (a - t)))))) * ((double) (((double) (((double) cbrt(((double) (z - t)))) / ((double) cbrt(((double) (a - t)))))) * ((double) (y / ((double) (((double) cbrt(((double) (((double) cbrt(((double) (a - t)))) * ((double) cbrt(((double) (a - t)))))))) * ((double) cbrt(((double) cbrt(((double) (a - t))))))))))))))));
} else {
double VAR_1;
if ((a <= 5.487632808733478e-129)) {
VAR_1 = ((double) (((double) (((double) (z * y)) / t)) + x));
} else {
VAR_1 = ((double) (((double) (x + y)) - ((double) (((double) (((double) (((double) (z - t)) / ((double) (((double) cbrt(((double) (a - t)))) * ((double) cbrt(((double) (a - t)))))))) * ((double) (((double) (((double) cbrt(y)) * ((double) cbrt(y)))) / ((double) cbrt(((double) (((double) cbrt(((double) (a - t)))) * ((double) cbrt(((double) (a - t)))))))))))) * ((double) (((double) cbrt(y)) / ((double) cbrt(((double) cbrt(((double) (a - t))))))))))));
}
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.9 |
|---|---|
| Target | 9.0 |
| Herbie | 8.8 |
if a < -3.44428060091320539e-113Initial program 15.1
rmApplied add-cube-cbrt15.2
Applied times-frac8.0
rmApplied add-cube-cbrt8.0
Applied cbrt-prod8.1
rmApplied add-cube-cbrt8.1
Applied times-frac8.1
Applied associate-*l*7.8
if -3.44428060091320539e-113 < a < 5.4876328087334781e-129Initial program 21.3
Taylor expanded around inf 10.1
if 5.4876328087334781e-129 < a Initial program 15.0
rmApplied add-cube-cbrt15.1
Applied times-frac8.8
rmApplied add-cube-cbrt8.8
Applied cbrt-prod8.9
Applied add-cube-cbrt8.9
Applied times-frac8.9
Applied associate-*r*8.7
Final simplification8.8
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))))