\frac{x \cdot \left(y - z\right)}{t - z}\begin{array}{l}
\mathbf{if}\;\frac{x \cdot \left(y - z\right)}{t - z} = -\infty:\\
\;\;\;\;\frac{x}{t - z} \cdot \left(y - z\right)\\
\mathbf{elif}\;\frac{x \cdot \left(y - z\right)}{t - z} \le 5.316577800148401 \cdot 10^{177}:\\
\;\;\;\;\frac{x \cdot \left(y - z\right)}{t - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{y}{t - z} - \frac{z}{t - z}\right)\\
\end{array}double f(double x, double y, double z, double t) {
double r589414 = x;
double r589415 = y;
double r589416 = z;
double r589417 = r589415 - r589416;
double r589418 = r589414 * r589417;
double r589419 = t;
double r589420 = r589419 - r589416;
double r589421 = r589418 / r589420;
return r589421;
}
double f(double x, double y, double z, double t) {
double r589422 = x;
double r589423 = y;
double r589424 = z;
double r589425 = r589423 - r589424;
double r589426 = r589422 * r589425;
double r589427 = t;
double r589428 = r589427 - r589424;
double r589429 = r589426 / r589428;
double r589430 = -inf.0;
bool r589431 = r589429 <= r589430;
double r589432 = r589422 / r589428;
double r589433 = r589432 * r589425;
double r589434 = 5.316577800148401e+177;
bool r589435 = r589429 <= r589434;
double r589436 = r589423 / r589428;
double r589437 = r589424 / r589428;
double r589438 = r589436 - r589437;
double r589439 = r589422 * r589438;
double r589440 = r589435 ? r589429 : r589439;
double r589441 = r589431 ? r589433 : r589440;
return r589441;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 11.5 |
|---|---|
| Target | 2.2 |
| Herbie | 1.5 |
if (/ (* x (- y z)) (- t z)) < -inf.0Initial program 64.0
rmApplied *-un-lft-identity64.0
Applied times-frac0.1
Simplified0.1
rmApplied div-sub0.1
rmApplied div-inv0.2
Applied div-inv0.2
Applied distribute-rgt-out--0.2
Applied associate-*r*0.4
Simplified0.2
if -inf.0 < (/ (* x (- y z)) (- t z)) < 5.316577800148401e+177Initial program 1.4
if 5.316577800148401e+177 < (/ (* x (- y z)) (- t z)) Initial program 43.7
rmApplied *-un-lft-identity43.7
Applied times-frac2.7
Simplified2.7
rmApplied div-sub2.7
Final simplification1.5
herbie shell --seed 2020056
(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)))