\[ \begin{array}{c}[y, t] = \mathsf{sort}([y, t])\\ \end{array} \]
Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[\left(x \cdot y - z \cdot y\right) \cdot t
\]
↓
\[\begin{array}{l}
t_1 := x \cdot y - z \cdot y\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{+188}:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+199}:\\
\;\;\;\;\left(y \cdot x\right) \cdot t - t \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(t \cdot \left(x - z\right)\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) (* z y))))
(if (<= t_1 -5e+188)
(* (- x z) (* y t))
(if (<= t_1 5e+199)
(- (* (* y x) t) (* t (* y z)))
(* y (* t (- x z))))))) 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) - (z * y);
double tmp;
if (t_1 <= -5e+188) {
tmp = (x - z) * (y * t);
} else if (t_1 <= 5e+199) {
tmp = ((y * x) * t) - (t * (y * z));
} else {
tmp = y * (t * (x - z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = ((x * y) - (z * y)) * t
end function
↓
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (x * y) - (z * y)
if (t_1 <= (-5d+188)) then
tmp = (x - z) * (y * t)
else if (t_1 <= 5d+199) then
tmp = ((y * x) * t) - (t * (y * z))
else
tmp = y * (t * (x - z))
end if
code = tmp
end function
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) - (z * y);
double tmp;
if (t_1 <= -5e+188) {
tmp = (x - z) * (y * t);
} else if (t_1 <= 5e+199) {
tmp = ((y * x) * t) - (t * (y * z));
} else {
tmp = y * (t * (x - z));
}
return tmp;
}
def code(x, y, z, t):
return ((x * y) - (z * y)) * t
↓
def code(x, y, z, t):
t_1 = (x * y) - (z * y)
tmp = 0
if t_1 <= -5e+188:
tmp = (x - z) * (y * t)
elif t_1 <= 5e+199:
tmp = ((y * x) * t) - (t * (y * z))
else:
tmp = y * (t * (x - z))
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(z * y))
tmp = 0.0
if (t_1 <= -5e+188)
tmp = Float64(Float64(x - z) * Float64(y * t));
elseif (t_1 <= 5e+199)
tmp = Float64(Float64(Float64(y * x) * t) - Float64(t * Float64(y * z)));
else
tmp = Float64(y * Float64(t * Float64(x - z)));
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) - (z * y);
tmp = 0.0;
if (t_1 <= -5e+188)
tmp = (x - z) * (y * t);
elseif (t_1 <= 5e+199)
tmp = ((y * x) * t) - (t * (y * z));
else
tmp = y * (t * (x - z));
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[(z * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+188], N[(N[(x - z), $MachinePrecision] * N[(y * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+199], N[(N[(N[(y * x), $MachinePrecision] * t), $MachinePrecision] - N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(t * N[(x - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\left(x \cdot y - z \cdot y\right) \cdot t
↓
\begin{array}{l}
t_1 := x \cdot y - z \cdot y\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{+188}:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+199}:\\
\;\;\;\;\left(y \cdot x\right) \cdot t - t \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(t \cdot \left(x - z\right)\right)\\
\end{array}
Alternatives Alternative 1 Error 1.5 Cost 1480
\[\begin{array}{l}
t_1 := x \cdot y - z \cdot y\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{+188}:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+199}:\\
\;\;\;\;\left(y \cdot \left(x - z\right)\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(t \cdot \left(x - z\right)\right)\\
\end{array}
\]
Alternative 2 Error 20.3 Cost 912
\[\begin{array}{l}
t_1 := \left(-z\right) \cdot \left(t \cdot y\right)\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{-90}:\\
\;\;\;\;y \cdot \left(t \cdot \left(-z\right)\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{-18}:\\
\;\;\;\;\left(y \cdot x\right) \cdot t\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+21}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+46}:\\
\;\;\;\;x \cdot \left(y \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 3 Error 20.8 Cost 912
\[\begin{array}{l}
t_1 := \left(y \cdot \left(-z\right)\right) \cdot t\\
\mathbf{if}\;z \leq -2 \cdot 10^{-118}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{-18}:\\
\;\;\;\;\left(y \cdot x\right) \cdot t\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+21}:\\
\;\;\;\;\left(-z\right) \cdot \left(t \cdot y\right)\\
\mathbf{elif}\;z \leq 8.6 \cdot 10^{+46}:\\
\;\;\;\;x \cdot \left(y \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 4 Error 7.4 Cost 712
\[\begin{array}{l}
t_1 := y \cdot \left(t \cdot \left(x - z\right)\right)\\
\mathbf{if}\;x \leq -7.5 \cdot 10^{-236}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-234}:\\
\;\;\;\;\left(-z\right) \cdot \left(t \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 5 Error 19.9 Cost 648
\[\begin{array}{l}
\mathbf{if}\;x \leq -6.8 \cdot 10^{+44}:\\
\;\;\;\;y \cdot \left(t \cdot x\right)\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-22}:\\
\;\;\;\;y \cdot \left(t \cdot \left(-z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot x\right) \cdot t\\
\end{array}
\]
Alternative 6 Error 2.6 Cost 580
\[\begin{array}{l}
\mathbf{if}\;t \leq 9 \cdot 10^{-21}:\\
\;\;\;\;y \cdot \left(t \cdot \left(x - z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot \left(x - z\right)\right) \cdot t\\
\end{array}
\]
Alternative 7 Error 29.3 Cost 452
\[\begin{array}{l}
\mathbf{if}\;t \leq 6600000000000:\\
\;\;\;\;y \cdot \left(t \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot t\right)\\
\end{array}
\]
Alternative 8 Error 29.7 Cost 452
\[\begin{array}{l}
\mathbf{if}\;t \leq 10^{-149}:\\
\;\;\;\;y \cdot \left(t \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot x\right) \cdot t\\
\end{array}
\]
Alternative 9 Error 31.4 Cost 320
\[x \cdot \left(y \cdot t\right)
\]