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\\
t_2 := y \cdot \left(t \cdot \left(x - z\right)\right)\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{+291}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_1 \leq -4 \cdot 10^{-228}:\\
\;\;\;\;t_1 \cdot t\\
\mathbf{elif}\;t_1 \leq 3 \cdot 10^{-160} \lor \neg \left(t_1 \leq 2 \cdot 10^{+187}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(y \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) (* y z))) (t_2 (* y (* t (- x z)))))
(if (<= t_1 -5e+291)
t_2
(if (<= t_1 -4e-228)
(* t_1 t)
(if (or (<= t_1 3e-160) (not (<= t_1 2e+187)))
t_2
(* t (* y (- 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) - (y * z);
double t_2 = y * (t * (x - z));
double tmp;
if (t_1 <= -5e+291) {
tmp = t_2;
} else if (t_1 <= -4e-228) {
tmp = t_1 * t;
} else if ((t_1 <= 3e-160) || !(t_1 <= 2e+187)) {
tmp = t_2;
} else {
tmp = t * (y * (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) :: t_2
real(8) :: tmp
t_1 = (x * y) - (y * z)
t_2 = y * (t * (x - z))
if (t_1 <= (-5d+291)) then
tmp = t_2
else if (t_1 <= (-4d-228)) then
tmp = t_1 * t
else if ((t_1 <= 3d-160) .or. (.not. (t_1 <= 2d+187))) then
tmp = t_2
else
tmp = t * (y * (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) - (y * z);
double t_2 = y * (t * (x - z));
double tmp;
if (t_1 <= -5e+291) {
tmp = t_2;
} else if (t_1 <= -4e-228) {
tmp = t_1 * t;
} else if ((t_1 <= 3e-160) || !(t_1 <= 2e+187)) {
tmp = t_2;
} else {
tmp = t * (y * (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) - (y * z)
t_2 = y * (t * (x - z))
tmp = 0
if t_1 <= -5e+291:
tmp = t_2
elif t_1 <= -4e-228:
tmp = t_1 * t
elif (t_1 <= 3e-160) or not (t_1 <= 2e+187):
tmp = t_2
else:
tmp = t * (y * (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(y * z))
t_2 = Float64(y * Float64(t * Float64(x - z)))
tmp = 0.0
if (t_1 <= -5e+291)
tmp = t_2;
elseif (t_1 <= -4e-228)
tmp = Float64(t_1 * t);
elseif ((t_1 <= 3e-160) || !(t_1 <= 2e+187))
tmp = t_2;
else
tmp = Float64(t * Float64(y * 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) - (y * z);
t_2 = y * (t * (x - z));
tmp = 0.0;
if (t_1 <= -5e+291)
tmp = t_2;
elseif (t_1 <= -4e-228)
tmp = t_1 * t;
elseif ((t_1 <= 3e-160) || ~((t_1 <= 2e+187)))
tmp = t_2;
else
tmp = t * (y * (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[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(t * N[(x - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+291], t$95$2, If[LessEqual[t$95$1, -4e-228], N[(t$95$1 * t), $MachinePrecision], If[Or[LessEqual[t$95$1, 3e-160], N[Not[LessEqual[t$95$1, 2e+187]], $MachinePrecision]], t$95$2, N[(t * N[(y * N[(x - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\left(x \cdot y - z \cdot y\right) \cdot t
↓
\begin{array}{l}
t_1 := x \cdot y - y \cdot z\\
t_2 := y \cdot \left(t \cdot \left(x - z\right)\right)\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{+291}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_1 \leq -4 \cdot 10^{-228}:\\
\;\;\;\;t_1 \cdot t\\
\mathbf{elif}\;t_1 \leq 3 \cdot 10^{-160} \lor \neg \left(t_1 \leq 2 \cdot 10^{+187}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(y \cdot \left(x - z\right)\right)\\
\end{array}
Alternatives Alternative 1 Error 20.0 Cost 1176
\[\begin{array}{l}
t_1 := y \cdot \left(x \cdot t\right)\\
t_2 := \left(y \cdot z\right) \cdot \left(-t\right)\\
t_3 := y \cdot \left(z \cdot \left(-t\right)\right)\\
\mathbf{if}\;x \leq -1.4 \cdot 10^{-29}:\\
\;\;\;\;t \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq -2.15 \cdot 10^{-98}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -6 \cdot 10^{-109}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.1 \cdot 10^{-159}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{-222}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 6 \cdot 10^{+52}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2 Error 20.0 Cost 913
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.85 \cdot 10^{-26}:\\
\;\;\;\;t \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq -5.6 \cdot 10^{-100}:\\
\;\;\;\;y \cdot \left(z \cdot \left(-t\right)\right)\\
\mathbf{elif}\;x \leq -1.65 \cdot 10^{-108} \lor \neg \left(x \leq 1.2 \cdot 10^{+54}\right):\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(-y \cdot t\right)\\
\end{array}
\]
Alternative 3 Error 20.3 Cost 912
\[\begin{array}{l}
t_1 := t \cdot \left(x \cdot y\right)\\
t_2 := y \cdot \left(z \cdot \left(-t\right)\right)\\
\mathbf{if}\;x \leq -5 \cdot 10^{-31}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{-108}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{-49}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{+54}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\end{array}
\]
Alternative 4 Error 7.3 Cost 845
\[\begin{array}{l}
\mathbf{if}\;t \leq 1.8 \cdot 10^{+111} \lor \neg \left(t \leq 1.75 \cdot 10^{+141}\right) \land t \leq 7.5 \cdot 10^{+256}:\\
\;\;\;\;y \cdot \left(t \cdot \left(x - z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(-y \cdot t\right)\\
\end{array}
\]
Alternative 5 Error 4.9 Cost 580
\[\begin{array}{l}
\mathbf{if}\;t \leq 2.85 \cdot 10^{+103}:\\
\;\;\;\;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 6 Error 5.1 Cost 580
\[\begin{array}{l}
\mathbf{if}\;t \leq 3.5 \cdot 10^{+103}:\\
\;\;\;\;y \cdot \left(t \cdot \left(x - z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\end{array}
\]
Alternative 7 Error 30.4 Cost 452
\[\begin{array}{l}
\mathbf{if}\;t \leq 1.08 \cdot 10^{+95}:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot t\right)\\
\end{array}
\]
Alternative 8 Error 31.7 Cost 320
\[x \cdot \left(y \cdot t\right)
\]