\[ \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 - y \cdot z\\
\mathbf{if}\;t_1 \leq -1 \cdot 10^{+253} \lor \neg \left(t_1 \leq 2 \cdot 10^{+192}\right):\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 \cdot t\\
\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 (or (<= t_1 -1e+253) (not (<= t_1 2e+192)))
(* (- x z) (* y t))
(* t_1 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 <= -1e+253) || !(t_1 <= 2e+192)) {
tmp = (x - z) * (y * t);
} else {
tmp = t_1 * t;
}
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) - (y * z)
if ((t_1 <= (-1d+253)) .or. (.not. (t_1 <= 2d+192))) then
tmp = (x - z) * (y * t)
else
tmp = t_1 * t
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) - (y * z);
double tmp;
if ((t_1 <= -1e+253) || !(t_1 <= 2e+192)) {
tmp = (x - z) * (y * t);
} else {
tmp = t_1 * 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 <= -1e+253) or not (t_1 <= 2e+192):
tmp = (x - z) * (y * t)
else:
tmp = t_1 * 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 <= -1e+253) || !(t_1 <= 2e+192))
tmp = Float64(Float64(x - z) * Float64(y * t));
else
tmp = Float64(t_1 * 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 <= -1e+253) || ~((t_1 <= 2e+192)))
tmp = (x - z) * (y * t);
else
tmp = t_1 * 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[Or[LessEqual[t$95$1, -1e+253], N[Not[LessEqual[t$95$1, 2e+192]], $MachinePrecision]], N[(N[(x - z), $MachinePrecision] * N[(y * t), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * t), $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 -1 \cdot 10^{+253} \lor \neg \left(t_1 \leq 2 \cdot 10^{+192}\right):\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 \cdot t\\
\end{array}
Alternatives Alternative 1 Error 21.8 Cost 913
\[\begin{array}{l}
t_1 := \left(-y\right) \cdot \left(z \cdot t\right)\\
\mathbf{if}\;z \leq -3 \cdot 10^{-100}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+46}:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+92} \lor \neg \left(z \leq 8.5 \cdot 10^{+179}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(x \cdot y\right)\\
\end{array}
\]
Alternative 2 Error 21.7 Cost 913
\[\begin{array}{l}
\mathbf{if}\;z \leq -6.5 \cdot 10^{-92}:\\
\;\;\;\;z \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+46}:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;z \leq 2.15 \cdot 10^{+92} \lor \neg \left(z \leq 8.5 \cdot 10^{+179}\right):\\
\;\;\;\;\left(-y\right) \cdot \left(z \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(x \cdot y\right)\\
\end{array}
\]
Alternative 3 Error 21.9 Cost 913
\[\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{-98}:\\
\;\;\;\;\left(y \cdot z\right) \cdot \left(-t\right)\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{+46}:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+92} \lor \neg \left(z \leq 8.5 \cdot 10^{+179}\right):\\
\;\;\;\;\left(-y\right) \cdot \left(z \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(x \cdot y\right)\\
\end{array}
\]
Alternative 4 Error 7.8 Cost 580
\[\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+151}:\\
\;\;\;\;\left(y \cdot z\right) \cdot \left(-t\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(x - z\right) \cdot t\right)\\
\end{array}
\]
Alternative 5 Error 2.4 Cost 580
\[\begin{array}{l}
\mathbf{if}\;t \leq 4 \cdot 10^{-13}:\\
\;\;\;\;y \cdot \left(\left(x - z\right) \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(y \cdot \left(x - z\right)\right)\\
\end{array}
\]
Alternative 6 Error 29.2 Cost 452
\[\begin{array}{l}
\mathbf{if}\;t \leq 20000000000:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot t\right)\\
\end{array}
\]
Alternative 7 Error 31.5 Cost 320
\[y \cdot \left(x \cdot t\right)
\]