\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\begin{array}{l}
\mathbf{if}\;t \le -1.53218274451368 \cdot 10^{89}:\\
\;\;\;\;\frac{z \cdot y}{t} + x\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - \left(\left(\left(z - t\right) \cdot \left(\sqrt[3]{\frac{\sqrt[3]{y} \cdot \sqrt[3]{y}}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}}} \cdot \sqrt[3]{\frac{\sqrt[3]{y} \cdot \sqrt[3]{y}}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}}}\right)\right) \cdot \left(\sqrt[3]{\sqrt[3]{y} \cdot \sqrt[3]{y}} \cdot \sqrt[3]{\frac{1}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}}}\right)\right) \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{a - t}}\\
\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 VAR;
if ((t <= -1.53218274451368e+89)) {
VAR = (((z * y) / t) + x);
} else {
VAR = ((x + y) - ((((z - t) * (cbrt(((cbrt(y) * cbrt(y)) / (cbrt((a - t)) * cbrt((a - t))))) * cbrt(((cbrt(y) * cbrt(y)) / (cbrt((a - t)) * cbrt((a - t))))))) * (cbrt((cbrt(y) * cbrt(y))) * cbrt((1.0 / (cbrt((a - t)) * cbrt((a - t))))))) * (cbrt(y) / cbrt((a - t)))));
}
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 | 10.2 |
if t < -1.53218274451368e+89Initial program 28.7
Taylor expanded around inf 16.5
if -1.53218274451368e+89 < t Initial program 13.4
rmApplied *-un-lft-identity13.4
Applied times-frac9.9
Simplified9.9
rmApplied add-cube-cbrt10.0
Applied add-cube-cbrt10.1
Applied times-frac10.1
Applied associate-*r*8.7
rmApplied add-cube-cbrt8.7
Applied associate-*r*8.7
rmApplied div-inv8.7
Applied cbrt-prod8.7
Final simplification10.2
herbie shell --seed 2020075
(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))))