\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\begin{array}{l}
\mathbf{if}\;t \le -5.346964750333344 \cdot 10^{27} \lor \neg \left(t \le 1.08451189140463412 \cdot 10^{202}\right):\\
\;\;\;\;\frac{z \cdot y}{t} + x\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - \left(\frac{z - t}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \left(\sqrt[3]{\frac{y}{\sqrt[3]{a - t}}} \cdot \sqrt[3]{\frac{y}{\sqrt[3]{a - t}}}\right)\right) \cdot \left(\sqrt[3]{y} \cdot \sqrt[3]{\frac{1}{\sqrt[3]{a - t}}}\right)\right)\\
\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 (((t <= -5.346964750333344e+27) || !(t <= 1.0845118914046341e+202))) {
VAR = ((double) (((double) (((double) (z * y)) / t)) + x));
} else {
VAR = ((double) (x + ((double) (y - ((double) (((double) (((double) (((double) (z - t)) / ((double) (((double) cbrt(((double) (a - t)))) * ((double) cbrt(((double) (a - t)))))))) * ((double) (((double) cbrt(((double) (y / ((double) cbrt(((double) (a - t)))))))) * ((double) cbrt(((double) (y / ((double) cbrt(((double) (a - t)))))))))))) * ((double) (((double) cbrt(y)) * ((double) cbrt(((double) (1.0 / ((double) cbrt(((double) (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.2 |
|---|---|
| Target | 8.2 |
| Herbie | 10.1 |
if t < -5.346964750333344e27 or 1.08451189140463412e202 < t Initial program 28.9
Taylor expanded around inf 17.0
if -5.346964750333344e27 < t < 1.08451189140463412e202Initial program 9.7
rmApplied add-cube-cbrt9.9
Applied times-frac6.6
rmApplied add-cube-cbrt6.7
Applied associate-*r*6.7
rmApplied div-inv6.7
Applied cbrt-prod6.7
rmApplied associate--l+6.6
Final simplification10.1
herbie shell --seed 2020149
(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))))