\left(x \cdot y - z \cdot y\right) \cdot t
\begin{array}{l}
\mathbf{if}\;x \cdot y - z \cdot y \le -8.195669489681609678798574875257253827771 \cdot 10^{239}:\\
\;\;\;\;\left(t \cdot y\right) \cdot \left(x - z\right)\\
\mathbf{elif}\;x \cdot y - z \cdot y \le -3.838984261423296633673495406852766881499 \cdot 10^{-245}:\\
\;\;\;\;t \cdot \left(x \cdot y - z \cdot y\right)\\
\mathbf{elif}\;x \cdot y - z \cdot y \le 1.584401045790907446074774340867010475211 \cdot 10^{-151}:\\
\;\;\;\;\left(t \cdot y\right) \cdot \left(x - z\right)\\
\mathbf{elif}\;x \cdot y - z \cdot y \le 8.47804001699789240780003797872227611413 \cdot 10^{211}:\\
\;\;\;\;t \cdot \left(x \cdot y - z \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot \left(x - z\right)\right) \cdot y\\
\end{array}double f(double x, double y, double z, double t) {
double r405219 = x;
double r405220 = y;
double r405221 = r405219 * r405220;
double r405222 = z;
double r405223 = r405222 * r405220;
double r405224 = r405221 - r405223;
double r405225 = t;
double r405226 = r405224 * r405225;
return r405226;
}
double f(double x, double y, double z, double t) {
double r405227 = x;
double r405228 = y;
double r405229 = r405227 * r405228;
double r405230 = z;
double r405231 = r405230 * r405228;
double r405232 = r405229 - r405231;
double r405233 = -8.19566948968161e+239;
bool r405234 = r405232 <= r405233;
double r405235 = t;
double r405236 = r405235 * r405228;
double r405237 = r405227 - r405230;
double r405238 = r405236 * r405237;
double r405239 = -3.838984261423297e-245;
bool r405240 = r405232 <= r405239;
double r405241 = r405235 * r405232;
double r405242 = 1.5844010457909074e-151;
bool r405243 = r405232 <= r405242;
double r405244 = 8.478040016997892e+211;
bool r405245 = r405232 <= r405244;
double r405246 = r405235 * r405237;
double r405247 = r405246 * r405228;
double r405248 = r405245 ? r405241 : r405247;
double r405249 = r405243 ? r405238 : r405248;
double r405250 = r405240 ? r405241 : r405249;
double r405251 = r405234 ? r405238 : r405250;
return r405251;
}




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.4 |
if (- (* x y) (* z y)) < -8.19566948968161e+239 or -3.838984261423297e-245 < (- (* x y) (* z y)) < 1.5844010457909074e-151Initial program 17.9
rmApplied pow117.9
Applied pow117.9
Applied pow-prod-down17.9
Simplified0.9
if -8.19566948968161e+239 < (- (* x y) (* z y)) < -3.838984261423297e-245 or 1.5844010457909074e-151 < (- (* x y) (* z y)) < 8.478040016997892e+211Initial program 0.2
if 8.478040016997892e+211 < (- (* x y) (* z y)) Initial program 29.4
rmApplied distribute-rgt-out--29.4
Applied associate-*l*0.9
Final simplification0.4
herbie shell --seed 2019194
(FPCore (x y z t)
:name "Linear.Projection:inverseInfinitePerspective from linear-1.19.1.3"
: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))