\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\begin{array}{l}
\mathbf{if}\;a \le -4.510471776231933 \cdot 10^{-128}:\\
\;\;\;\;\left(x + y\right) - \frac{z - t}{\frac{a - t}{y}}\\
\mathbf{elif}\;a \le 1.28679633508425762 \cdot 10^{-176}:\\
\;\;\;\;\frac{z \cdot y}{t} + x\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - \left(\sqrt[3]{\left(z - t\right) \cdot \frac{y}{a - t}} \cdot \sqrt[3]{\left(z - t\right) \cdot \frac{y}{a - t}}\right) \cdot \sqrt[3]{\left(z - t\right) \cdot \frac{y}{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 <= -4.510471776231933e-128)) {
VAR = ((double) (((double) (x + y)) - ((double) (((double) (z - t)) / ((double) (((double) (a - t)) / y))))));
} else {
double VAR_1;
if ((a <= 1.2867963350842576e-176)) {
VAR_1 = ((double) (((double) (((double) (z * y)) / t)) + x));
} else {
VAR_1 = ((double) (((double) (x + y)) - ((double) (((double) (((double) cbrt(((double) (((double) (z - t)) * ((double) (y / ((double) (a - t)))))))) * ((double) cbrt(((double) (((double) (z - t)) * ((double) (y / ((double) (a - t)))))))))) * ((double) cbrt(((double) (((double) (z - t)) * ((double) (y / ((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.2 |
|---|---|
| Target | 8.5 |
| Herbie | 9.2 |
if a < -4.510471776231933e-128Initial program 15.2
rmApplied associate-/l*8.9
if -4.510471776231933e-128 < a < 1.2867963350842576e-176Initial program 20.1
Taylor expanded around inf 9.1
if 1.2867963350842576e-176 < a Initial program 14.8
rmApplied *-un-lft-identity14.8
Applied times-frac9.5
Simplified9.5
rmApplied add-cube-cbrt9.6
Final simplification9.2
herbie shell --seed 2020129
(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))))