\frac{x \cdot \left(y - z\right)}{t - z}\begin{array}{l}
\mathbf{if}\;z \le -2.83656963214038031 \cdot 10^{-98} \lor \neg \left(z \le 6.88888476702219794 \cdot 10^{-56}\right):\\
\;\;\;\;x \cdot \frac{y - z}{t - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt[3]{x} \cdot \sqrt[3]{x}}{t - z} \cdot \left(\left(y - z\right) \cdot \sqrt[3]{x}\right)\\
\end{array}double code(double x, double y, double z, double t) {
return ((double) (((double) (x * ((double) (y - z)))) / ((double) (t - z))));
}
double code(double x, double y, double z, double t) {
double VAR;
if (((z <= -2.8365696321403803e-98) || !(z <= 6.888884767022198e-56))) {
VAR = ((double) (x * ((double) (((double) (y - z)) / ((double) (t - z))))));
} else {
VAR = ((double) (((double) (((double) (((double) cbrt(x)) * ((double) cbrt(x)))) / ((double) (t - z)))) * ((double) (((double) (y - z)) * ((double) cbrt(x))))));
}
return VAR;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 11.2 |
|---|---|
| Target | 2.1 |
| Herbie | 1.9 |
if z < -2.8365696321403803e-98 or 6.888884767022198e-56 < z Initial program 14.0
rmApplied *-un-lft-identity14.0
Applied times-frac0.5
Simplified0.5
if -2.8365696321403803e-98 < z < 6.888884767022198e-56Initial program 5.8
rmApplied associate-/l*5.0
rmApplied div-inv5.1
Applied add-cube-cbrt5.9
Applied times-frac4.5
Simplified4.5
Final simplification1.9
herbie shell --seed 2020113 +o rules:numerics
(FPCore (x y z t)
:name "Graphics.Rendering.Chart.Plot.AreaSpots:renderAreaSpots4D from Chart-1.5.3"
:precision binary64
:herbie-target
(/ x (/ (- t z) (- y z)))
(/ (* x (- y z)) (- t z)))