\frac{x \cdot \left(y - z\right)}{t - z}\begin{array}{l}
\mathbf{if}\;\frac{x \cdot \left(y - z\right)}{t - z} = -inf.0:\\
\;\;\;\;\frac{x}{\frac{t}{y - z} - \frac{z}{y - z}}\\
\mathbf{elif}\;\frac{x \cdot \left(y - z\right)}{t - z} \le 6.44776167832283439 \cdot 10^{294}:\\
\;\;\;\;\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 ((((double) (((double) (x * ((double) (y - z)))) / ((double) (t - z)))) <= -inf.0)) {
VAR = ((double) (x / ((double) (((double) (t / ((double) (y - z)))) - ((double) (z / ((double) (y - z))))))));
} else {
double VAR_1;
if ((((double) (((double) (x * ((double) (y - z)))) / ((double) (t - z)))) <= 6.447761678322834e+294)) {
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.4 |
|---|---|
| Target | 2.4 |
| Herbie | 1.1 |
if (/ (* x (- y z)) (- t z)) < -inf.0Initial program 64.0
rmApplied associate-/l*0.1
rmApplied div-sub0.1
if -inf.0 < (/ (* x (- y z)) (- t z)) < 6.447761678322834e+294Initial program 1.3
if 6.447761678322834e+294 < (/ (* x (- y z)) (- t z)) Initial program 62.1
rmApplied *-un-lft-identity62.1
Applied times-frac0.6
Simplified0.6
Final simplification1.1
herbie shell --seed 2020130
(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)))