\left(x \cdot y - z \cdot y\right) \cdot t
\begin{array}{l}
\mathbf{if}\;x \cdot y - z \cdot y = -\infty:\\
\;\;\;\;\left(t \cdot y\right) \cdot \left(x - z\right)\\
\mathbf{elif}\;x \cdot y - z \cdot y \le -4.3289707772072372 \cdot 10^{-295}:\\
\;\;\;\;\left(x \cdot y - z \cdot y\right) \cdot t\\
\mathbf{elif}\;x \cdot y - z \cdot y \le 7.59306900671491 \cdot 10^{-312}:\\
\;\;\;\;\left(t \cdot y\right) \cdot \left(x - z\right)\\
\mathbf{elif}\;x \cdot y - z \cdot y \le 7.42617537231530687 \cdot 10^{235}:\\
\;\;\;\;\left(x \cdot y - z \cdot y\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(x - z\right) \cdot t\right)\\
\end{array}double f(double x, double y, double z, double t) {
double r558698 = x;
double r558699 = y;
double r558700 = r558698 * r558699;
double r558701 = z;
double r558702 = r558701 * r558699;
double r558703 = r558700 - r558702;
double r558704 = t;
double r558705 = r558703 * r558704;
return r558705;
}
double f(double x, double y, double z, double t) {
double r558706 = x;
double r558707 = y;
double r558708 = r558706 * r558707;
double r558709 = z;
double r558710 = r558709 * r558707;
double r558711 = r558708 - r558710;
double r558712 = -inf.0;
bool r558713 = r558711 <= r558712;
double r558714 = t;
double r558715 = r558714 * r558707;
double r558716 = r558706 - r558709;
double r558717 = r558715 * r558716;
double r558718 = -4.328970777207237e-295;
bool r558719 = r558711 <= r558718;
double r558720 = r558711 * r558714;
double r558721 = 7.5930690067149e-312;
bool r558722 = r558711 <= r558721;
double r558723 = 7.426175372315307e+235;
bool r558724 = r558711 <= r558723;
double r558725 = r558716 * r558714;
double r558726 = r558707 * r558725;
double r558727 = r558724 ? r558720 : r558726;
double r558728 = r558722 ? r558717 : r558727;
double r558729 = r558719 ? r558720 : r558728;
double r558730 = r558713 ? r558717 : r558729;
return r558730;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 6.9 |
|---|---|
| Target | 3.2 |
| Herbie | 0.3 |
if (- (* x y) (* z y)) < -inf.0 or -4.328970777207237e-295 < (- (* x y) (* z y)) < 7.5930690067149e-312Initial program 38.1
rmApplied add-cube-cbrt38.1
Applied associate-*l*38.1
Taylor expanded around inf 38.1
Simplified0.2
if -inf.0 < (- (* x y) (* z y)) < -4.328970777207237e-295 or 7.5930690067149e-312 < (- (* x y) (* z y)) < 7.426175372315307e+235Initial program 0.2
if 7.426175372315307e+235 < (- (* x y) (* z y)) Initial program 35.1
rmApplied distribute-rgt-out--35.1
Applied associate-*l*0.5
Final simplification0.3
herbie shell --seed 2020003
(FPCore (x y z t)
:name "Linear.Projection:inverseInfinitePerspective from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -9.231879582886777e-80) (* (* y t) (- x z)) (if (< t 2.543067051564877e+83) (* y (* t (- x z))) (* (* y (- x z)) t)))
(* (- (* x y) (* z y)) t))