\[ \begin{array}{c}[y, z, t] = \mathsf{sort}([y, z, t])\\ \end{array} \]
Math FPCore C Julia Wolfram TeX \[\left(x \cdot 2 - \left(\left(y \cdot 9\right) \cdot z\right) \cdot t\right) + \left(a \cdot 27\right) \cdot b
\]
↓
\[\begin{array}{l}
t_1 := b \cdot \left(a \cdot 27\right)\\
\mathbf{if}\;z \leq -3.880781187588443 \cdot 10^{-8}:\\
\;\;\;\;\left(x \cdot 2 + y \cdot \left(t \cdot \left(z \cdot -9\right)\right)\right) + t_1\\
\mathbf{else}:\\
\;\;\;\;t_1 + \mathsf{fma}\left(\left(z \cdot y\right) \cdot -9, t, x + x\right)\\
\end{array}
\]
(FPCore (x y z t a b)
:precision binary64
(+ (- (* x 2.0) (* (* (* y 9.0) z) t)) (* (* a 27.0) b))) ↓
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (* a 27.0))))
(if (<= z -3.880781187588443e-8)
(+ (+ (* x 2.0) (* y (* t (* z -9.0)))) t_1)
(+ t_1 (fma (* (* z y) -9.0) t (+ x x)))))) double code(double x, double y, double z, double t, double a, double b) {
return ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b);
}
↓
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a * 27.0);
double tmp;
if (z <= -3.880781187588443e-8) {
tmp = ((x * 2.0) + (y * (t * (z * -9.0)))) + t_1;
} else {
tmp = t_1 + fma(((z * y) * -9.0), t, (x + x));
}
return tmp;
}
function code(x, y, z, t, a, b)
return Float64(Float64(Float64(x * 2.0) - Float64(Float64(Float64(y * 9.0) * z) * t)) + Float64(Float64(a * 27.0) * b))
end
↓
function code(x, y, z, t, a, b)
t_1 = Float64(b * Float64(a * 27.0))
tmp = 0.0
if (z <= -3.880781187588443e-8)
tmp = Float64(Float64(Float64(x * 2.0) + Float64(y * Float64(t * Float64(z * -9.0)))) + t_1);
else
tmp = Float64(t_1 + fma(Float64(Float64(z * y) * -9.0), t, Float64(x + x)));
end
return tmp
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x * 2.0), $MachinePrecision] - N[(N[(N[(y * 9.0), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(N[(a * 27.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.880781187588443e-8], N[(N[(N[(x * 2.0), $MachinePrecision] + N[(y * N[(t * N[(z * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(t$95$1 + N[(N[(N[(z * y), $MachinePrecision] * -9.0), $MachinePrecision] * t + N[(x + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\left(x \cdot 2 - \left(\left(y \cdot 9\right) \cdot z\right) \cdot t\right) + \left(a \cdot 27\right) \cdot b
↓
\begin{array}{l}
t_1 := b \cdot \left(a \cdot 27\right)\\
\mathbf{if}\;z \leq -3.880781187588443 \cdot 10^{-8}:\\
\;\;\;\;\left(x \cdot 2 + y \cdot \left(t \cdot \left(z \cdot -9\right)\right)\right) + t_1\\
\mathbf{else}:\\
\;\;\;\;t_1 + \mathsf{fma}\left(\left(z \cdot y\right) \cdot -9, t, x + x\right)\\
\end{array}
Alternatives Alternative 1 Error 1.2 Cost 1220
\[\begin{array}{l}
t_1 := b \cdot \left(a \cdot 27\right)\\
\mathbf{if}\;z \leq 4.81396441917767 \cdot 10^{-130}:\\
\;\;\;\;\left(x \cdot 2 + y \cdot \left(t \cdot \left(z \cdot -9\right)\right)\right) + t_1\\
\mathbf{else}:\\
\;\;\;\;t_1 + \left(\left(x + x\right) - \left(z \cdot 9\right) \cdot \left(y \cdot t\right)\right)\\
\end{array}
\]
Alternative 2 Error 0.5 Cost 1220
\[\begin{array}{l}
t_1 := b \cdot \left(a \cdot 27\right)\\
\mathbf{if}\;z \leq -1997915.999399946:\\
\;\;\;\;\left(x \cdot 2 + y \cdot \left(t \cdot \left(z \cdot -9\right)\right)\right) + t_1\\
\mathbf{else}:\\
\;\;\;\;t_1 + \left(x \cdot 2 + t \cdot \left(y \cdot \left(z \cdot -9\right)\right)\right)\\
\end{array}
\]
Alternative 3 Error 0.5 Cost 1220
\[\begin{array}{l}
t_1 := b \cdot \left(a \cdot 27\right)\\
\mathbf{if}\;z \leq -3.880781187588443 \cdot 10^{-8}:\\
\;\;\;\;\left(x \cdot 2 + y \cdot \left(t \cdot \left(z \cdot -9\right)\right)\right) + t_1\\
\mathbf{else}:\\
\;\;\;\;t_1 + \left(x \cdot 2 + t \cdot \left(\left(z \cdot y\right) \cdot -9\right)\right)\\
\end{array}
\]
Alternative 4 Error 29.1 Cost 1108
\[\begin{array}{l}
t_1 := b \cdot \left(a \cdot 27\right)\\
\mathbf{if}\;x \leq -6.3274694791194915 \cdot 10^{-9}:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;x \leq 4.4073829173746234 \cdot 10^{-209}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 6.872283774376131 \cdot 10^{-193}:\\
\;\;\;\;y \cdot \left(z \cdot \left(t \cdot -9\right)\right)\\
\mathbf{elif}\;x \leq 2.3518512293282752 \cdot 10^{-95}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.935549636815217 \cdot 10^{+55}:\\
\;\;\;\;-9 \cdot \left(z \cdot \left(y \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2\\
\end{array}
\]
Alternative 5 Error 29.1 Cost 1108
\[\begin{array}{l}
t_1 := b \cdot \left(a \cdot 27\right)\\
\mathbf{if}\;x \leq -6.3274694791194915 \cdot 10^{-9}:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;x \leq 4.4073829173746234 \cdot 10^{-209}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 6.872283774376131 \cdot 10^{-193}:\\
\;\;\;\;-9 \cdot \left(y \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;x \leq 2.3518512293282752 \cdot 10^{-95}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.935549636815217 \cdot 10^{+55}:\\
\;\;\;\;-9 \cdot \left(z \cdot \left(y \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2\\
\end{array}
\]
Alternative 6 Error 14.0 Cost 1100
\[\begin{array}{l}
t_1 := x \cdot 2 + -9 \cdot \left(y \cdot \left(z \cdot t\right)\right)\\
\mathbf{if}\;z \leq -2.245442788341001 \cdot 10^{-54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 5.679288592415012 \cdot 10^{-50}:\\
\;\;\;\;b \cdot \left(a \cdot 27\right) + x \cdot 2\\
\mathbf{elif}\;z \leq 10^{+115}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;-9 \cdot \left(z \cdot \left(y \cdot t\right)\right)\\
\end{array}
\]
Alternative 7 Error 12.9 Cost 1096
\[\begin{array}{l}
t_1 := b \cdot \left(a \cdot 27\right)\\
t_2 := t_1 + x \cdot 2\\
\mathbf{if}\;x \leq -6.3274694791194915 \cdot 10^{-9}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 3.935549636815217 \cdot 10^{+55}:\\
\;\;\;\;t_1 - \left(z \cdot 9\right) \cdot \left(y \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 8 Error 11.8 Cost 1096
\[\begin{array}{l}
t_1 := b \cdot \left(a \cdot 27\right)\\
t_2 := t_1 + x \cdot 2\\
\mathbf{if}\;x \leq -6.3274694791194915 \cdot 10^{-9}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 3.935549636815217 \cdot 10^{+55}:\\
\;\;\;\;t_1 + t \cdot \left(y \cdot \left(z \cdot -9\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 9 Error 5.2 Cost 1088
\[b \cdot \left(a \cdot 27\right) + \left(\left(x + x\right) - \left(z \cdot 9\right) \cdot \left(y \cdot t\right)\right)
\]
Alternative 10 Error 17.7 Cost 972
\[\begin{array}{l}
t_1 := -9 \cdot \left(z \cdot \left(y \cdot t\right)\right)\\
t_2 := b \cdot \left(a \cdot 27\right) + x \cdot 2\\
\mathbf{if}\;z \leq 10465718716.422607:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{+39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.36 \cdot 10^{+119}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 11 Error 17.7 Cost 972
\[\begin{array}{l}
t_1 := -9 \cdot \left(z \cdot \left(y \cdot t\right)\right)\\
\mathbf{if}\;z \leq 10465718716.422607:\\
\;\;\;\;b \cdot \left(a \cdot 27\right) + x \cdot 2\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{+39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.36 \cdot 10^{+119}:\\
\;\;\;\;x \cdot 2 + 27 \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 12 Error 28.0 Cost 848
\[\begin{array}{l}
t_1 := b \cdot \left(a \cdot 27\right)\\
\mathbf{if}\;x \leq -6.3274694791194915 \cdot 10^{-9}:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;x \leq 4.4073829173746234 \cdot 10^{-209}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 6.872283774376131 \cdot 10^{-193}:\\
\;\;\;\;y \cdot \left(z \cdot \left(t \cdot -9\right)\right)\\
\mathbf{elif}\;x \leq 4.354028017044254 \cdot 10^{+20}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2\\
\end{array}
\]
Alternative 13 Error 27.8 Cost 584
\[\begin{array}{l}
\mathbf{if}\;x \leq -6.3274694791194915 \cdot 10^{-9}:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;x \leq 4.354028017044254 \cdot 10^{+20}:\\
\;\;\;\;a \cdot \left(27 \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2\\
\end{array}
\]
Alternative 14 Error 27.8 Cost 584
\[\begin{array}{l}
\mathbf{if}\;x \leq -6.3274694791194915 \cdot 10^{-9}:\\
\;\;\;\;x \cdot 2\\
\mathbf{elif}\;x \leq 4.354028017044254 \cdot 10^{+20}:\\
\;\;\;\;b \cdot \left(a \cdot 27\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2\\
\end{array}
\]
Alternative 15 Error 37.9 Cost 192
\[x \cdot 2
\]
Alternative 16 Error 62.4 Cost 64
\[0
\]