\frac{x \cdot \left(y - z\right)}{t - z}\begin{array}{l}
\mathbf{if}\;z \le -1.9903688673539559 \cdot 10^{-110}:\\
\;\;\;\;\frac{x}{\frac{t - z}{y - z}}\\
\mathbf{elif}\;z \le 4.87153406207128119 \cdot 10^{-189}:\\
\;\;\;\;\frac{x \cdot \left(y - z\right)}{t - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y - z}{t - z}\\
\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 <= -1.990368867353956e-110)) {
VAR = ((double) (x / ((double) (((double) (t - z)) / ((double) (y - z))))));
} else {
double VAR_1;
if ((z <= 4.871534062071281e-189)) {
VAR_1 = ((double) (((double) (x * ((double) (y - z)))) / ((double) (t - z))));
} else {
VAR_1 = ((double) (x * ((double) (((double) (y - z)) / ((double) (t - z))))));
}
VAR = VAR_1;
}
return VAR;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 11.6 |
|---|---|
| Target | 2.1 |
| Herbie | 2.1 |
if z < -1.9903688673539559e-110Initial program 14.6
rmApplied associate-/l*0.8
if -1.9903688673539559e-110 < z < 4.87153406207128119e-189Initial program 5.6
if 4.87153406207128119e-189 < z Initial program 12.6
rmApplied *-un-lft-identity12.6
Applied times-frac1.2
Simplified1.2
Final simplification2.1
herbie shell --seed 2020163
(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)))