\[ \begin{array}{c}[y, t] = \mathsf{sort}([y, t])\\ \end{array} \]
Math FPCore C Julia 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 -2 \cdot 10^{+218}:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+277}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot \left(x - z\right), t, t \cdot \mathsf{fma}\left(y, -z, y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot t - z \cdot t\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))))
(if (<= t_1 -2e+218)
(* (- x z) (* y t))
(if (<= t_1 5e+277)
(fma (* y (- x z)) t (* t (fma y (- z) (* y z))))
(* y (- (* x t) (* z 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 <= -2e+218) {
tmp = (x - z) * (y * t);
} else if (t_1 <= 5e+277) {
tmp = fma((y * (x - z)), t, (t * fma(y, -z, (y * z))));
} else {
tmp = y * ((x * t) - (z * 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 <= -2e+218)
tmp = Float64(Float64(x - z) * Float64(y * t));
elseif (t_1 <= 5e+277)
tmp = fma(Float64(y * Float64(x - z)), t, Float64(t * fma(y, Float64(-z), Float64(y * z))));
else
tmp = Float64(y * Float64(Float64(x * t) - Float64(z * t)));
end
return 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[LessEqual[t$95$1, -2e+218], N[(N[(x - z), $MachinePrecision] * N[(y * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+277], N[(N[(y * N[(x - z), $MachinePrecision]), $MachinePrecision] * t + N[(t * N[(y * (-z) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(x * t), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $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 -2 \cdot 10^{+218}:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+277}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot \left(x - z\right), t, t \cdot \mathsf{fma}\left(y, -z, y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot t - z \cdot t\right)\\
\end{array}
Alternatives Alternative 1 Error 1.7 Cost 1736
\[\begin{array}{l}
t_1 := x \cdot y - y \cdot z\\
\mathbf{if}\;t_1 \leq -2 \cdot 10^{+218}:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\mathbf{elif}\;t_1 \leq 10^{+162}:\\
\;\;\;\;t \cdot \left(y \cdot \left(x - z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{\frac{1}{x - z}}{y \cdot t}}\\
\end{array}
\]
Alternative 2 Error 1.5 Cost 1480
\[\begin{array}{l}
t_1 := x \cdot y - y \cdot z\\
t_2 := \left(x - z\right) \cdot \left(y \cdot t\right)\\
\mathbf{if}\;t_1 \leq -2 \cdot 10^{+218}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_1 \leq 10^{+248}:\\
\;\;\;\;t \cdot \left(y \cdot \left(x - z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 3 Error 19.5 Cost 712
\[\begin{array}{l}
\mathbf{if}\;x \leq -33268983442043268:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;x \leq 2.019052354148519 \cdot 10^{-40}:\\
\;\;\;\;\left(z \cdot t\right) \cdot \left(-y\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{\frac{\frac{1}{y}}{x}}\\
\end{array}
\]
Alternative 4 Error 7.5 Cost 712
\[\begin{array}{l}
t_1 := \left(x - z\right) \cdot \left(y \cdot t\right)\\
\mathbf{if}\;x \leq -7.21651413342849 \cdot 10^{-207}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.0374068095533603 \cdot 10^{-235}:\\
\;\;\;\;t \cdot \left(z \cdot \left(-y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 5 Error 19.6 Cost 648
\[\begin{array}{l}
\mathbf{if}\;x \leq -33268983442043268:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;x \leq 2.019052354148519 \cdot 10^{-40}:\\
\;\;\;\;\left(z \cdot t\right) \cdot \left(-y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot t\\
\end{array}
\]
Alternative 6 Error 30.0 Cost 452
\[\begin{array}{l}
\mathbf{if}\;t \leq 1.028861000513625 \cdot 10^{-83}:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot t\\
\end{array}
\]
Alternative 7 Error 30.1 Cost 452
\[\begin{array}{l}
\mathbf{if}\;t \leq 4 \cdot 10^{+73}:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot t\right)\\
\end{array}
\]
Alternative 8 Error 32.0 Cost 320
\[\left(x \cdot y\right) \cdot t
\]