Math FPCore C Julia Wolfram TeX \[2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right)
\]
↓
\[\begin{array}{l}
t_1 := a + b \cdot c\\
t_2 := i \cdot \left(c \cdot t_1\right)\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;2 \cdot \mathsf{fma}\left(y, x, z \cdot t - c \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)\\
\mathbf{elif}\;t_2 \leq 10^{+294}:\\
\;\;\;\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - t_2\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(x \cdot y - c \cdot \left(t_1 \cdot i\right)\right)\\
\end{array}
\]
(FPCore (x y z t a b c i)
:precision binary64
(* 2.0 (- (+ (* x y) (* z t)) (* (* (+ a (* b c)) c) i)))) ↓
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (* b c))) (t_2 (* i (* c t_1))))
(if (<= t_2 (- INFINITY))
(* 2.0 (fma y x (- (* z t) (* c (* b (* c i))))))
(if (<= t_2 1e+294)
(* 2.0 (- (+ (* x y) (* z t)) t_2))
(* 2.0 (- (* x y) (* c (* t_1 i)))))))) double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i));
}
↓
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a + (b * c);
double t_2 = i * (c * t_1);
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = 2.0 * fma(y, x, ((z * t) - (c * (b * (c * i)))));
} else if (t_2 <= 1e+294) {
tmp = 2.0 * (((x * y) + (z * t)) - t_2);
} else {
tmp = 2.0 * ((x * y) - (c * (t_1 * i)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i)
return Float64(2.0 * Float64(Float64(Float64(x * y) + Float64(z * t)) - Float64(Float64(Float64(a + Float64(b * c)) * c) * i)))
end
↓
function code(x, y, z, t, a, b, c, i)
t_1 = Float64(a + Float64(b * c))
t_2 = Float64(i * Float64(c * t_1))
tmp = 0.0
if (t_2 <= Float64(-Inf))
tmp = Float64(2.0 * fma(y, x, Float64(Float64(z * t) - Float64(c * Float64(b * Float64(c * i))))));
elseif (t_2 <= 1e+294)
tmp = Float64(2.0 * Float64(Float64(Float64(x * y) + Float64(z * t)) - t_2));
else
tmp = Float64(2.0 * Float64(Float64(x * y) - Float64(c * Float64(t_1 * i))));
end
return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(2.0 * N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(c * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(2.0 * N[(y * x + N[(N[(z * t), $MachinePrecision] - N[(c * N[(b * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+294], N[(2.0 * N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(x * y), $MachinePrecision] - N[(c * N[(t$95$1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right)
↓
\begin{array}{l}
t_1 := a + b \cdot c\\
t_2 := i \cdot \left(c \cdot t_1\right)\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;2 \cdot \mathsf{fma}\left(y, x, z \cdot t - c \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)\\
\mathbf{elif}\;t_2 \leq 10^{+294}:\\
\;\;\;\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - t_2\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(x \cdot y - c \cdot \left(t_1 \cdot i\right)\right)\\
\end{array}
Alternatives Alternative 1 Error 1.8 Cost 7488
\[2 \cdot \left(\mathsf{fma}\left(x, y, z \cdot t\right) - \left(a + b \cdot c\right) \cdot \left(c \cdot i\right)\right)
\]
Alternative 2 Error 3.0 Cost 2504
\[\begin{array}{l}
t_1 := x \cdot y + z \cdot t\\
t_2 := a + b \cdot c\\
t_3 := i \cdot \left(c \cdot t_2\right)\\
\mathbf{if}\;t_3 \leq -\infty:\\
\;\;\;\;2 \cdot \left(t_1 - c \cdot \left(a \cdot i\right)\right)\\
\mathbf{elif}\;t_3 \leq 10^{+294}:\\
\;\;\;\;2 \cdot \left(t_1 - t_3\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(x \cdot y - c \cdot \left(t_2 \cdot i\right)\right)\\
\end{array}
\]
Alternative 3 Error 22.0 Cost 2413
\[\begin{array}{l}
t_1 := 2 \cdot \left(z \cdot t - c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right)\\
t_2 := i \cdot \left(a \cdot c\right)\\
t_3 := 2 \cdot \left(x \cdot y - t_2\right)\\
t_4 := 2 \cdot \left(x \cdot y + z \cdot t\right)\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{-115}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-195}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-87}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-56}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{+68}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;t \leq 3.3 \cdot 10^{+93}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+122}:\\
\;\;\;\;2 \cdot \left(z \cdot t - t_2\right)\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{+134}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{+144}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{+245} \lor \neg \left(t \leq 7 \cdot 10^{+273}\right):\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 4 Error 11.2 Cost 2388
\[\begin{array}{l}
t_1 := x \cdot y + z \cdot t\\
t_2 := 2 \cdot \left(t_1 - c \cdot \left(a \cdot i\right)\right)\\
\mathbf{if}\;x \cdot y \leq -1 \cdot 10^{-168}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \cdot y \leq 4 \cdot 10^{-182}:\\
\;\;\;\;2 \cdot \left(z \cdot t - c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right)\\
\mathbf{elif}\;x \cdot y \leq 2 \cdot 10^{-32}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \cdot y \leq 2 \cdot 10^{-26}:\\
\;\;\;\;\left(b \cdot \left(c \cdot \left(c \cdot i\right)\right)\right) \cdot -2\\
\mathbf{elif}\;x \cdot y \leq 5 \cdot 10^{+159}:\\
\;\;\;\;2 \cdot \left(t_1 - i \cdot \left(c \cdot \left(b \cdot c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 5 Error 18.6 Cost 2281
\[\begin{array}{l}
t_1 := 2 \cdot \left(z \cdot t - i \cdot \left(a \cdot c\right)\right)\\
t_2 := c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\\
t_3 := 2 \cdot \left(x \cdot y - t_2\right)\\
t_4 := 2 \cdot \left(x \cdot y + z \cdot t\right)\\
t_5 := 2 \cdot \left(z \cdot t - t_2\right)\\
\mathbf{if}\;t \leq -2.8 \cdot 10^{-126}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-130}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{-87}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 0.175:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{+42}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+68}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{+92}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+135}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+241} \lor \neg \left(t \leq 1.3 \cdot 10^{+274}\right):\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_5\\
\end{array}
\]
Alternative 6 Error 22.8 Cost 1760
\[\begin{array}{l}
t_1 := 2 \cdot \left(z \cdot t - i \cdot \left(a \cdot c\right)\right)\\
t_2 := 2 \cdot \left(x \cdot y + z \cdot t\right)\\
t_3 := \left(c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right) \cdot -2\\
\mathbf{if}\;c \leq -2.7 \cdot 10^{+151}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -1.55 \cdot 10^{-21}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1 \cdot 10^{-68}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -3.8 \cdot 10^{-204}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -2.9 \cdot 10^{-239}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 6.1 \cdot 10^{-158}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 1.25 \cdot 10^{-12}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.04 \cdot 10^{+43}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\]
Alternative 7 Error 22.6 Cost 1496
\[\begin{array}{l}
t_1 := 2 \cdot \left(z \cdot t - i \cdot \left(a \cdot c\right)\right)\\
t_2 := 2 \cdot \left(x \cdot y - c \cdot \left(a \cdot i\right)\right)\\
\mathbf{if}\;a \leq -1.8 \cdot 10^{+212}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2.9 \cdot 10^{+139}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -3.6 \cdot 10^{+91}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2.4 \cdot 10^{+22}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 6 \cdot 10^{+54}:\\
\;\;\;\;2 \cdot \left(x \cdot y + z \cdot t\right)\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{+263}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 8 Error 11.0 Cost 1481
\[\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -1 \cdot 10^{-168} \lor \neg \left(x \cdot y \leq 4 \cdot 10^{-182}\right):\\
\;\;\;\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - c \cdot \left(a \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(z \cdot t - c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right)\\
\end{array}
\]
Alternative 9 Error 41.6 Cost 1241
\[\begin{array}{l}
t_1 := 2 \cdot \left(z \cdot t\right)\\
t_2 := -2 \cdot \left(i \cdot \left(a \cdot c\right)\right)\\
t_3 := 2 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;a \leq -2.5 \cdot 10^{+101}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-307}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.45 \cdot 10^{-92}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-65}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 8 \cdot 10^{+54} \lor \neg \left(a \leq 6.5 \cdot 10^{+281}\right):\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 10 Error 40.5 Cost 1241
\[\begin{array}{l}
t_1 := 2 \cdot \left(z \cdot t\right)\\
t_2 := -2 \cdot \left(a \cdot \left(c \cdot i\right)\right)\\
t_3 := 2 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;a \leq -2.45 \cdot 10^{+101}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-307}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 5.4 \cdot 10^{-95}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-69}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{+55} \lor \neg \left(a \leq 5.8 \cdot 10^{+281}\right):\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 11 Error 21.7 Cost 1100
\[\begin{array}{l}
t_1 := i \cdot \left(a \cdot c\right)\\
\mathbf{if}\;a \leq -4 \cdot 10^{+101}:\\
\;\;\;\;2 \cdot \left(x \cdot y - t_1\right)\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{+54}:\\
\;\;\;\;2 \cdot \left(x \cdot y + z \cdot t\right)\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{+263}:\\
\;\;\;\;2 \cdot \left(z \cdot t - t_1\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(x \cdot y - c \cdot \left(a \cdot i\right)\right)\\
\end{array}
\]
Alternative 12 Error 37.2 Cost 848
\[\begin{array}{l}
t_1 := 2 \cdot \left(x \cdot y\right)\\
t_2 := 2 \cdot \left(z \cdot t\right)\\
\mathbf{if}\;z \leq -8 \cdot 10^{-15}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-226}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.4 \cdot 10^{-279}:\\
\;\;\;\;-2 \cdot \left(c \cdot \left(a \cdot i\right)\right)\\
\mathbf{elif}\;z \leq 4.1 \cdot 10^{-157}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 13 Error 24.6 Cost 844
\[\begin{array}{l}
t_1 := -2 \cdot \left(a \cdot \left(c \cdot i\right)\right)\\
\mathbf{if}\;a \leq -1.7 \cdot 10^{+114}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{+98}:\\
\;\;\;\;2 \cdot \left(x \cdot y + z \cdot t\right)\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{+279}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(x \cdot y\right)\\
\end{array}
\]
Alternative 14 Error 36.6 Cost 585
\[\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{-14} \lor \neg \left(z \leq 4.1 \cdot 10^{-157}\right):\\
\;\;\;\;2 \cdot \left(z \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(x \cdot y\right)\\
\end{array}
\]
Alternative 15 Error 42.9 Cost 320
\[2 \cdot \left(z \cdot t\right)
\]
Alternative 16 Error 62.2 Cost 64
\[0
\]