\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\begin{array}{l}
\mathbf{if}\;a \le -6.3494561716062882 \cdot 10^{-201} \lor \neg \left(a \le 3.2669667908802025 \cdot 10^{-186}\right):\\
\;\;\;\;\left(x + y\right) - \left(\frac{z - t}{\sqrt[3]{a - t}} \cdot \frac{\frac{\sqrt[3]{y} \cdot \sqrt[3]{y}}{\sqrt[3]{1}}}{{\left(\sqrt[3]{\sqrt[3]{a - t}}\right)}^{3}}\right) \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{a - t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{z \cdot y}{t} + x\\
\end{array}double code(double x, double y, double z, double t, double a) {
return ((x + y) - (((z - t) * y) / (a - t)));
}
double code(double x, double y, double z, double t, double a) {
double temp;
if (((a <= -6.349456171606288e-201) || !(a <= 3.2669667908802025e-186))) {
temp = ((x + y) - ((((z - t) / cbrt((a - t))) * (((cbrt(y) * cbrt(y)) / cbrt(1.0)) / pow(cbrt(cbrt((a - t))), 3.0))) * (cbrt(y) / cbrt((a - t)))));
} else {
temp = (((z * y) / t) + x);
}
return temp;
}




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.2 |
| Herbie | 8.7 |
if a < -6.349456171606288e-201 or 3.2669667908802025e-186 < a Initial program 15.3
rmApplied add-cube-cbrt15.4
Applied times-frac9.5
rmApplied add-cube-cbrt9.6
rmApplied *-un-lft-identity9.6
Applied cbrt-prod9.6
Applied add-cube-cbrt9.6
Applied times-frac9.6
Applied associate-*r*9.3
Simplified9.0
if -6.349456171606288e-201 < a < 3.2669667908802025e-186Initial program 20.3
Taylor expanded around inf 7.0
Final simplification8.7
herbie shell --seed 2020053
(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 (- 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 (- a t))) y))))
(- (+ x y) (/ (* (- z t) y) (- a t))))