\left(x \cdot y - z \cdot y\right) \cdot t
\begin{array}{l}
\mathbf{if}\;x \cdot y - z \cdot y \le -4.28824894235068545 \cdot 10^{303} \lor \neg \left(x \cdot y - z \cdot y \le -4.7564680486971018 \cdot 10^{-95} \lor \neg \left(x \cdot y - z \cdot y \le 6.6450334734924226 \cdot 10^{-297}\right) \land x \cdot y - z \cdot y \le 6.61588088234635616 \cdot 10^{208}\right):\\
\;\;\;\;y \cdot \left(\left(x - z\right) \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y - z \cdot y\right) \cdot t\\
\end{array}double f(double x, double y, double z, double t) {
double r648273 = x;
double r648274 = y;
double r648275 = r648273 * r648274;
double r648276 = z;
double r648277 = r648276 * r648274;
double r648278 = r648275 - r648277;
double r648279 = t;
double r648280 = r648278 * r648279;
return r648280;
}
double f(double x, double y, double z, double t) {
double r648281 = x;
double r648282 = y;
double r648283 = r648281 * r648282;
double r648284 = z;
double r648285 = r648284 * r648282;
double r648286 = r648283 - r648285;
double r648287 = -4.2882489423506854e+303;
bool r648288 = r648286 <= r648287;
double r648289 = -4.756468048697102e-95;
bool r648290 = r648286 <= r648289;
double r648291 = 6.645033473492423e-297;
bool r648292 = r648286 <= r648291;
double r648293 = !r648292;
double r648294 = 6.615880882346356e+208;
bool r648295 = r648286 <= r648294;
bool r648296 = r648293 && r648295;
bool r648297 = r648290 || r648296;
double r648298 = !r648297;
bool r648299 = r648288 || r648298;
double r648300 = r648281 - r648284;
double r648301 = t;
double r648302 = r648300 * r648301;
double r648303 = r648282 * r648302;
double r648304 = r648286 * r648301;
double r648305 = r648299 ? r648303 : r648304;
return r648305;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 7.1 |
|---|---|
| Target | 3.1 |
| Herbie | 0.7 |
if (- (* x y) (* z y)) < -4.2882489423506854e+303 or -4.756468048697102e-95 < (- (* x y) (* z y)) < 6.645033473492423e-297 or 6.615880882346356e+208 < (- (* x y) (* z y)) Initial program 22.6
rmApplied distribute-rgt-out--22.6
Applied associate-*l*1.7
if -4.2882489423506854e+303 < (- (* x y) (* z y)) < -4.756468048697102e-95 or 6.645033473492423e-297 < (- (* x y) (* z y)) < 6.615880882346356e+208Initial program 0.3
Final simplification0.7
herbie shell --seed 2020047 +o rules:numerics
(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))