\frac{x \cdot \left(y - z\right)}{t - z}\begin{array}{l}
\mathbf{if}\;z \le -3.7212715542249777 \cdot 10^{41}:\\
\;\;\;\;\frac{x}{\frac{t}{y - z} - \frac{z}{y - z}}\\
\mathbf{elif}\;z \le -7.69254324124208407 \cdot 10^{-283}:\\
\;\;\;\;\frac{x}{t - z} \cdot \left(y - z\right)\\
\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 <= -3.721271554224978e+41)) {
VAR = ((double) (x / ((double) (((double) (t / ((double) (y - z)))) - ((double) (z / ((double) (y - z))))))));
} else {
double VAR_1;
if ((z <= -7.692543241242084e-283)) {
VAR_1 = ((double) (((double) (x / ((double) (t - z)))) * ((double) (y - 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.7 |
|---|---|
| Target | 2.1 |
| Herbie | 2.4 |
if z < -3.7212715542249777e41Initial program 19.1
rmApplied associate-/l*0.1
rmApplied div-sub0.1
if -3.7212715542249777e41 < z < -7.69254324124208407e-283Initial program 5.3
rmApplied associate-/l*3.4
rmApplied associate-/r/4.7
if -7.69254324124208407e-283 < z Initial program 11.5
rmApplied *-un-lft-identity11.5
Applied times-frac2.4
Simplified2.4
Final simplification2.4
herbie shell --seed 2020153
(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)))