\[ \begin{array}{c}[y, t] = \mathsf{sort}([y, t])\\ \end{array} \]
Math FPCore C Java Python Julia MATLAB Wolfram TeX \[\left(x \cdot y - z \cdot y\right) \cdot t
\]
↓
\[\begin{array}{l}
t_1 := x \cdot y - y \cdot z\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;y \cdot \left(t \cdot \left(x - z\right)\right)\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+176}:\\
\;\;\;\;t \cdot \left(y \cdot \left(x - z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\end{array}
\]
(FPCore (x y z t) :precision binary64 (* (- (* x y) (* z y)) t)) ↓
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (* x y) (* y z))))
(if (<= t_1 (- INFINITY))
(* y (* t (- x z)))
(if (<= t_1 2e+176) (* t (* y (- x z))) (* (- x z) (* y t)))))) double code(double x, double y, double z, double t) {
return ((x * y) - (z * y)) * t;
}
↓
double code(double x, double y, double z, double t) {
double t_1 = (x * y) - (y * z);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = y * (t * (x - z));
} else if (t_1 <= 2e+176) {
tmp = t * (y * (x - z));
} else {
tmp = (x - z) * (y * t);
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
return ((x * y) - (z * y)) * t;
}
↓
public static double code(double x, double y, double z, double t) {
double t_1 = (x * y) - (y * z);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = y * (t * (x - z));
} else if (t_1 <= 2e+176) {
tmp = t * (y * (x - z));
} else {
tmp = (x - z) * (y * t);
}
return tmp;
}
def code(x, y, z, t):
return ((x * y) - (z * y)) * t
↓
def code(x, y, z, t):
t_1 = (x * y) - (y * z)
tmp = 0
if t_1 <= -math.inf:
tmp = y * (t * (x - z))
elif t_1 <= 2e+176:
tmp = t * (y * (x - z))
else:
tmp = (x - z) * (y * t)
return tmp
function code(x, y, z, t)
return Float64(Float64(Float64(x * y) - Float64(z * y)) * t)
end
↓
function code(x, y, z, t)
t_1 = Float64(Float64(x * y) - Float64(y * z))
tmp = 0.0
if (t_1 <= Float64(-Inf))
tmp = Float64(y * Float64(t * Float64(x - z)));
elseif (t_1 <= 2e+176)
tmp = Float64(t * Float64(y * Float64(x - z)));
else
tmp = Float64(Float64(x - z) * Float64(y * t));
end
return tmp
end
function tmp = code(x, y, z, t)
tmp = ((x * y) - (z * y)) * t;
end
↓
function tmp_2 = code(x, y, z, t)
t_1 = (x * y) - (y * z);
tmp = 0.0;
if (t_1 <= -Inf)
tmp = y * (t * (x - z));
elseif (t_1 <= 2e+176)
tmp = t * (y * (x - z));
else
tmp = (x - z) * (y * t);
end
tmp_2 = tmp;
end
code[x_, y_, z_, t_] := N[(N[(N[(x * y), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]
↓
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(y * N[(t * N[(x - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+176], N[(t * N[(y * N[(x - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x - z), $MachinePrecision] * N[(y * t), $MachinePrecision]), $MachinePrecision]]]]
\left(x \cdot y - z \cdot y\right) \cdot t
↓
\begin{array}{l}
t_1 := x \cdot y - y \cdot z\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;y \cdot \left(t \cdot \left(x - z\right)\right)\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+176}:\\
\;\;\;\;t \cdot \left(y \cdot \left(x - z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\end{array}
Alternatives Alternative 1 Error 20.2 Cost 1176
\[\begin{array}{l}
t_1 := y \cdot \left(z \cdot \left(-t\right)\right)\\
t_2 := x \cdot \left(y \cdot t\right)\\
\mathbf{if}\;z \leq -5.2 \cdot 10^{+100}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -9.4 \cdot 10^{+17}:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;z \leq -6.8 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{-307}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{-39}:\\
\;\;\;\;t \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+18}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2 Error 20.2 Cost 1176
\[\begin{array}{l}
t_1 := y \cdot \left(z \cdot \left(-t\right)\right)\\
t_2 := x \cdot \left(y \cdot t\right)\\
\mathbf{if}\;z \leq -1.28 \cdot 10^{+98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -4.6 \cdot 10^{+17}:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{-307}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{-39}:\\
\;\;\;\;t \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;z \leq 122000000000:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot t\right) \cdot \left(-z\right)\\
\end{array}
\]
Alternative 3 Error 7.9 Cost 713
\[\begin{array}{l}
\mathbf{if}\;x \leq -9.5 \cdot 10^{-182} \lor \neg \left(x \leq 3.7 \cdot 10^{-202}\right):\\
\;\;\;\;y \cdot \left(t \cdot \left(x - z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot z\right) \cdot \left(-t\right)\\
\end{array}
\]
Alternative 4 Error 2.7 Cost 580
\[\begin{array}{l}
\mathbf{if}\;t \leq 5.1 \cdot 10^{-37}:\\
\;\;\;\;y \cdot \left(t \cdot \left(x - z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(y \cdot \left(x - z\right)\right)\\
\end{array}
\]
Alternative 5 Error 28.8 Cost 452
\[\begin{array}{l}
\mathbf{if}\;t \leq 63:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot t\right)\\
\end{array}
\]
Alternative 6 Error 28.9 Cost 452
\[\begin{array}{l}
\mathbf{if}\;y \leq -5 \cdot 10^{-71}:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(x \cdot y\right)\\
\end{array}
\]
Alternative 7 Error 30.7 Cost 320
\[x \cdot \left(y \cdot t\right)
\]