\[ \begin{array}{c}[x, y] = \mathsf{sort}([x, y])\\ \end{array} \]
Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[\frac{x \cdot y - \left(z \cdot 9\right) \cdot t}{a \cdot 2}
\]
↓
\[\begin{array}{l}
t_1 := -4.5 \cdot \left(t \cdot \frac{z}{a}\right) + 0.5 \cdot \left(x \cdot \frac{y}{a}\right)\\
t_2 := x \cdot y - \left(z \cdot 9\right) \cdot t\\
\mathbf{if}\;t_2 \leq -5 \cdot 10^{+251}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 10^{+229}:\\
\;\;\;\;\frac{y \cdot x - \left(t \cdot z\right) \cdot 9}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
(FPCore (x y z t a)
:precision binary64
(/ (- (* x y) (* (* z 9.0) t)) (* a 2.0))) ↓
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (* -4.5 (* t (/ z a))) (* 0.5 (* x (/ y a)))))
(t_2 (- (* x y) (* (* z 9.0) t))))
(if (<= t_2 -5e+251)
t_1
(if (<= t_2 1e+229) (/ (- (* y x) (* (* t z) 9.0)) (* a 2.0)) t_1)))) double code(double x, double y, double z, double t, double a) {
return ((x * y) - ((z * 9.0) * t)) / (a * 2.0);
}
↓
double code(double x, double y, double z, double t, double a) {
double t_1 = (-4.5 * (t * (z / a))) + (0.5 * (x * (y / a)));
double t_2 = (x * y) - ((z * 9.0) * t);
double tmp;
if (t_2 <= -5e+251) {
tmp = t_1;
} else if (t_2 <= 1e+229) {
tmp = ((y * x) - ((t * z) * 9.0)) / (a * 2.0);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = ((x * y) - ((z * 9.0d0) * t)) / (a * 2.0d0)
end function
↓
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((-4.5d0) * (t * (z / a))) + (0.5d0 * (x * (y / a)))
t_2 = (x * y) - ((z * 9.0d0) * t)
if (t_2 <= (-5d+251)) then
tmp = t_1
else if (t_2 <= 1d+229) then
tmp = ((y * x) - ((t * z) * 9.0d0)) / (a * 2.0d0)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
return ((x * y) - ((z * 9.0) * t)) / (a * 2.0);
}
↓
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (-4.5 * (t * (z / a))) + (0.5 * (x * (y / a)));
double t_2 = (x * y) - ((z * 9.0) * t);
double tmp;
if (t_2 <= -5e+251) {
tmp = t_1;
} else if (t_2 <= 1e+229) {
tmp = ((y * x) - ((t * z) * 9.0)) / (a * 2.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a):
return ((x * y) - ((z * 9.0) * t)) / (a * 2.0)
↓
def code(x, y, z, t, a):
t_1 = (-4.5 * (t * (z / a))) + (0.5 * (x * (y / a)))
t_2 = (x * y) - ((z * 9.0) * t)
tmp = 0
if t_2 <= -5e+251:
tmp = t_1
elif t_2 <= 1e+229:
tmp = ((y * x) - ((t * z) * 9.0)) / (a * 2.0)
else:
tmp = t_1
return tmp
function code(x, y, z, t, a)
return Float64(Float64(Float64(x * y) - Float64(Float64(z * 9.0) * t)) / Float64(a * 2.0))
end
↓
function code(x, y, z, t, a)
t_1 = Float64(Float64(-4.5 * Float64(t * Float64(z / a))) + Float64(0.5 * Float64(x * Float64(y / a))))
t_2 = Float64(Float64(x * y) - Float64(Float64(z * 9.0) * t))
tmp = 0.0
if (t_2 <= -5e+251)
tmp = t_1;
elseif (t_2 <= 1e+229)
tmp = Float64(Float64(Float64(y * x) - Float64(Float64(t * z) * 9.0)) / Float64(a * 2.0));
else
tmp = t_1;
end
return tmp
end
function tmp = code(x, y, z, t, a)
tmp = ((x * y) - ((z * 9.0) * t)) / (a * 2.0);
end
↓
function tmp_2 = code(x, y, z, t, a)
t_1 = (-4.5 * (t * (z / a))) + (0.5 * (x * (y / a)));
t_2 = (x * y) - ((z * 9.0) * t);
tmp = 0.0;
if (t_2 <= -5e+251)
tmp = t_1;
elseif (t_2 <= 1e+229)
tmp = ((y * x) - ((t * z) * 9.0)) / (a * 2.0);
else
tmp = t_1;
end
tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := N[(N[(N[(x * y), $MachinePrecision] - N[(N[(z * 9.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] / N[(a * 2.0), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(-4.5 * N[(t * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.5 * N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(N[(z * 9.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e+251], t$95$1, If[LessEqual[t$95$2, 1e+229], N[(N[(N[(y * x), $MachinePrecision] - N[(N[(t * z), $MachinePrecision] * 9.0), $MachinePrecision]), $MachinePrecision] / N[(a * 2.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\frac{x \cdot y - \left(z \cdot 9\right) \cdot t}{a \cdot 2}
↓
\begin{array}{l}
t_1 := -4.5 \cdot \left(t \cdot \frac{z}{a}\right) + 0.5 \cdot \left(x \cdot \frac{y}{a}\right)\\
t_2 := x \cdot y - \left(z \cdot 9\right) \cdot t\\
\mathbf{if}\;t_2 \leq -5 \cdot 10^{+251}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 10^{+229}:\\
\;\;\;\;\frac{y \cdot x - \left(t \cdot z\right) \cdot 9}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
Alternatives Alternative 1 Error 4.3 Cost 2120
\[\begin{array}{l}
t_1 := x \cdot y - \left(z \cdot 9\right) \cdot t\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;x \cdot \left(0.5 \cdot \frac{y}{a}\right)\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+303}:\\
\;\;\;\;\frac{t_1}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{2}}{\frac{a}{y}}\\
\end{array}
\]
Alternative 2 Error 4.3 Cost 2120
\[\begin{array}{l}
t_1 := x \cdot y - \left(z \cdot 9\right) \cdot t\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;x \cdot \left(0.5 \cdot \frac{y}{a}\right)\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+303}:\\
\;\;\;\;\frac{y \cdot x - \left(t \cdot z\right) \cdot 9}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{2}}{\frac{a}{y}}\\
\end{array}
\]
Alternative 3 Error 25.8 Cost 1636
\[\begin{array}{l}
t_1 := -4.5 \cdot \frac{t \cdot z}{a}\\
t_2 := t \cdot \frac{-4.5}{\frac{a}{z}}\\
t_3 := x \cdot \left(0.5 \cdot \frac{y}{a}\right)\\
\mathbf{if}\;x \leq -1.4 \cdot 10^{+72}:\\
\;\;\;\;0.5 \cdot \frac{y}{\frac{a}{x}}\\
\mathbf{elif}\;x \leq -2 \cdot 10^{+39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -6.6 \cdot 10^{-19}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -7 \cdot 10^{-86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -5.1 \cdot 10^{-121}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -9 \cdot 10^{-158}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.7 \cdot 10^{-169}:\\
\;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{-291}:\\
\;\;\;\;-4.5 \cdot \left(z \cdot \frac{t}{a}\right)\\
\mathbf{elif}\;x \leq 10^{-44}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\]
Alternative 4 Error 25.8 Cost 1636
\[\begin{array}{l}
t_1 := -4.5 \cdot \frac{t \cdot z}{a}\\
t_2 := t \cdot \frac{-4.5}{\frac{a}{z}}\\
t_3 := x \cdot \left(0.5 \cdot \frac{y}{a}\right)\\
\mathbf{if}\;x \leq -1.4 \cdot 10^{+72}:\\
\;\;\;\;0.5 \cdot \frac{y}{\frac{a}{x}}\\
\mathbf{elif}\;x \leq -2.6 \cdot 10^{+39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.7 \cdot 10^{-16}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.1 \cdot 10^{-85}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -5.5 \cdot 10^{-121}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -9 \cdot 10^{-158}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.7 \cdot 10^{-169}:\\
\;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\
\mathbf{elif}\;x \leq 7.4 \cdot 10^{-289}:\\
\;\;\;\;z \cdot \left(-4.5 \cdot \frac{t}{a}\right)\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{-48}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\]
Alternative 5 Error 25.8 Cost 1636
\[\begin{array}{l}
t_1 := -4.5 \cdot \frac{t \cdot z}{a}\\
t_2 := t \cdot \frac{-4.5}{\frac{a}{z}}\\
t_3 := x \cdot \left(0.5 \cdot \frac{y}{a}\right)\\
\mathbf{if}\;x \leq -1.9 \cdot 10^{+72}:\\
\;\;\;\;0.5 \cdot \frac{y}{\frac{a}{x}}\\
\mathbf{elif}\;x \leq -2.05 \cdot 10^{+39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.05 \cdot 10^{-17}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -9.6 \cdot 10^{-86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.35 \cdot 10^{-121}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.1 \cdot 10^{-157}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.7 \cdot 10^{-169}:\\
\;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\
\mathbf{elif}\;x \leq 2.15 \cdot 10^{-287}:\\
\;\;\;\;\frac{z}{\frac{a}{t \cdot -4.5}}\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{-58}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\]
Alternative 6 Error 25.7 Cost 1636
\[\begin{array}{l}
t_1 := -4.5 \cdot \frac{t \cdot z}{a}\\
t_2 := \frac{y \cdot x}{a \cdot 2}\\
t_3 := x \cdot \left(0.5 \cdot \frac{y}{a}\right)\\
t_4 := t \cdot \frac{-4.5}{\frac{a}{z}}\\
\mathbf{if}\;x \leq -1.4 \cdot 10^{+72}:\\
\;\;\;\;0.5 \cdot \frac{y}{\frac{a}{x}}\\
\mathbf{elif}\;x \leq -2.7 \cdot 10^{+38}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.55 \cdot 10^{-16}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -8.2 \cdot 10^{-86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -6.8 \cdot 10^{-122}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -2.45 \cdot 10^{-157}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq -1.7 \cdot 10^{-169}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{-286}:\\
\;\;\;\;\frac{z}{\frac{a}{t \cdot -4.5}}\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-51}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\]
Alternative 7 Error 4.4 Cost 1352
\[\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -5 \cdot 10^{+251}:\\
\;\;\;\;x \cdot \left(0.5 \cdot \frac{y}{a}\right)\\
\mathbf{elif}\;x \cdot y \leq 5 \cdot 10^{+209}:\\
\;\;\;\;\frac{x \cdot y - z \cdot \left(9 \cdot t\right)}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{y}{\frac{a}{x}}\\
\end{array}
\]
Alternative 8 Error 26.4 Cost 1240
\[\begin{array}{l}
t_1 := 0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\
t_2 := -4.5 \cdot \frac{t \cdot z}{a}\\
\mathbf{if}\;t \leq -1 \cdot 10^{-106}:\\
\;\;\;\;-4.5 \cdot \left(t \cdot \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{-57}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-8}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{+53}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{+87}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+173}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;-4.5 \cdot \left(z \cdot \frac{t}{a}\right)\\
\end{array}
\]
Alternative 9 Error 26.4 Cost 1240
\[\begin{array}{l}
t_1 := 0.5 \cdot \frac{y}{\frac{a}{x}}\\
t_2 := -4.5 \cdot \frac{t \cdot z}{a}\\
\mathbf{if}\;t \leq -1 \cdot 10^{-106}:\\
\;\;\;\;-4.5 \cdot \left(t \cdot \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 2.05 \cdot 10^{-57}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.65 \cdot 10^{-9}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{+54}:\\
\;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{+86}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+173}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;-4.5 \cdot \left(z \cdot \frac{t}{a}\right)\\
\end{array}
\]
Alternative 10 Error 8.1 Cost 964
\[\begin{array}{l}
\mathbf{if}\;x \leq -5 \cdot 10^{+232}:\\
\;\;\;\;0.5 \cdot \frac{y}{\frac{a}{x}}\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot x - t \cdot \left(z \cdot 9\right)\right) \cdot \frac{0.5}{a}\\
\end{array}
\]
Alternative 11 Error 31.4 Cost 712
\[\begin{array}{l}
\mathbf{if}\;z \leq -5 \cdot 10^{+117}:\\
\;\;\;\;-4.5 \cdot \left(t \cdot \frac{z}{a}\right)\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{+36}:\\
\;\;\;\;-4.5 \cdot \frac{t \cdot z}{a}\\
\mathbf{else}:\\
\;\;\;\;-4.5 \cdot \left(z \cdot \frac{t}{a}\right)\\
\end{array}
\]
Alternative 12 Error 32.6 Cost 448
\[-4.5 \cdot \left(t \cdot \frac{z}{a}\right)
\]