\[ \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:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\mathbf{elif}\;t_1 \leq -1 \cdot 10^{-152} \lor \neg \left(t_1 \leq 2 \cdot 10^{-45}\right) \land t_1 \leq 10^{+198}:\\
\;\;\;\;t \cdot \left(y \cdot \left(x - z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(x - z\right) \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))
(* (- x z) (* y t))
(if (or (<= t_1 -1e-152) (and (not (<= t_1 2e-45)) (<= t_1 1e+198)))
(* t (* y (- x z)))
(* y (* (- x z) 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 = (x - z) * (y * t);
} else if ((t_1 <= -1e-152) || (!(t_1 <= 2e-45) && (t_1 <= 1e+198))) {
tmp = t * (y * (x - z));
} else {
tmp = y * ((x - z) * 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 = (x - z) * (y * t);
} else if ((t_1 <= -1e-152) || (!(t_1 <= 2e-45) && (t_1 <= 1e+198))) {
tmp = t * (y * (x - z));
} else {
tmp = y * ((x - z) * 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 = (x - z) * (y * t)
elif (t_1 <= -1e-152) or (not (t_1 <= 2e-45) and (t_1 <= 1e+198)):
tmp = t * (y * (x - z))
else:
tmp = y * ((x - z) * 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(Float64(x - z) * Float64(y * t));
elseif ((t_1 <= -1e-152) || (!(t_1 <= 2e-45) && (t_1 <= 1e+198)))
tmp = Float64(t * Float64(y * Float64(x - z)));
else
tmp = Float64(y * Float64(Float64(x - z) * 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 = (x - z) * (y * t);
elseif ((t_1 <= -1e-152) || (~((t_1 <= 2e-45)) && (t_1 <= 1e+198)))
tmp = t * (y * (x - z));
else
tmp = y * ((x - z) * 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[(N[(x - z), $MachinePrecision] * N[(y * t), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t$95$1, -1e-152], And[N[Not[LessEqual[t$95$1, 2e-45]], $MachinePrecision], LessEqual[t$95$1, 1e+198]]], N[(t * N[(y * N[(x - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(x - z), $MachinePrecision] * 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:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\mathbf{elif}\;t_1 \leq -1 \cdot 10^{-152} \lor \neg \left(t_1 \leq 2 \cdot 10^{-45}\right) \land t_1 \leq 10^{+198}:\\
\;\;\;\;t \cdot \left(y \cdot \left(x - z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(x - z\right) \cdot t\right)\\
\end{array}