\left(x \cdot y - z \cdot y\right) \cdot t
\begin{array}{l}
\mathbf{if}\;x \cdot y - z \cdot y \le -3.946824240798518221900802412914984631734 \cdot 10^{289}:\\
\;\;\;\;\left(t \cdot \left(x - z\right)\right) \cdot y\\
\mathbf{elif}\;x \cdot y - z \cdot y \le -1.038709607759050920606541682950720354196 \cdot 10^{-301}:\\
\;\;\;\;t \cdot \left(x \cdot y - z \cdot y\right)\\
\mathbf{elif}\;x \cdot y - z \cdot y \le 3.623129453486458621372274209489816720412 \cdot 10^{-288}:\\
\;\;\;\;\left(t \cdot \left(x - z\right)\right) \cdot y\\
\mathbf{elif}\;x \cdot y - z \cdot y \le 5.962207706753821704514306347997996992628 \cdot 10^{164}:\\
\;\;\;\;t \cdot \left(x \cdot y - z \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\end{array}double f(double x, double y, double z, double t) {
double r25323175 = x;
double r25323176 = y;
double r25323177 = r25323175 * r25323176;
double r25323178 = z;
double r25323179 = r25323178 * r25323176;
double r25323180 = r25323177 - r25323179;
double r25323181 = t;
double r25323182 = r25323180 * r25323181;
return r25323182;
}
double f(double x, double y, double z, double t) {
double r25323183 = x;
double r25323184 = y;
double r25323185 = r25323183 * r25323184;
double r25323186 = z;
double r25323187 = r25323186 * r25323184;
double r25323188 = r25323185 - r25323187;
double r25323189 = -3.946824240798518e+289;
bool r25323190 = r25323188 <= r25323189;
double r25323191 = t;
double r25323192 = r25323183 - r25323186;
double r25323193 = r25323191 * r25323192;
double r25323194 = r25323193 * r25323184;
double r25323195 = -1.038709607759051e-301;
bool r25323196 = r25323188 <= r25323195;
double r25323197 = r25323191 * r25323188;
double r25323198 = 3.6231294534864586e-288;
bool r25323199 = r25323188 <= r25323198;
double r25323200 = 5.962207706753822e+164;
bool r25323201 = r25323188 <= r25323200;
double r25323202 = r25323184 * r25323191;
double r25323203 = r25323192 * r25323202;
double r25323204 = r25323201 ? r25323197 : r25323203;
double r25323205 = r25323199 ? r25323194 : r25323204;
double r25323206 = r25323196 ? r25323197 : r25323205;
double r25323207 = r25323190 ? r25323194 : r25323206;
return r25323207;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 6.7 |
|---|---|
| Target | 3.0 |
| Herbie | 0.5 |
if (- (* x y) (* z y)) < -3.946824240798518e+289 or -1.038709607759051e-301 < (- (* x y) (* z y)) < 3.6231294534864586e-288Initial program 32.1
Simplified0.1
rmApplied associate-*r*0.2
if -3.946824240798518e+289 < (- (* x y) (* z y)) < -1.038709607759051e-301 or 3.6231294534864586e-288 < (- (* x y) (* z y)) < 5.962207706753822e+164Initial program 0.2
if 5.962207706753822e+164 < (- (* x y) (* z y)) Initial program 22.3
Simplified2.1
Final simplification0.5
herbie shell --seed 2019169 +o rules:numerics
(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))