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 := 2 \cdot \left(t \cdot z - \left(c \cdot \left(b \cdot \left(c \cdot i\right)\right) + c \cdot \left(a \cdot i\right)\right)\right)\\
t_2 := c \cdot \left(a + b \cdot c\right)\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+264}:\\
\;\;\;\;2 \cdot \left(\left(t \cdot z + x \cdot y\right) - \frac{i}{\frac{\frac{1}{\mathsf{fma}\left(c, b, a\right)}}{c}}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\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 (* 2.0 (- (* t z) (+ (* c (* b (* c i))) (* c (* a i))))))
(t_2 (* c (+ a (* b c)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 5e+264)
(* 2.0 (- (+ (* t z) (* x y)) (/ i (/ (/ 1.0 (fma c b a)) c))))
t_1)))) 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 = 2.0 * ((t * z) - ((c * (b * (c * i))) + (c * (a * i))));
double t_2 = c * (a + (b * c));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= 5e+264) {
tmp = 2.0 * (((t * z) + (x * y)) - (i / ((1.0 / fma(c, b, a)) / c)));
} else {
tmp = t_1;
}
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(2.0 * Float64(Float64(t * z) - Float64(Float64(c * Float64(b * Float64(c * i))) + Float64(c * Float64(a * i)))))
t_2 = Float64(c * Float64(a + Float64(b * c)))
tmp = 0.0
if (t_2 <= Float64(-Inf))
tmp = t_1;
elseif (t_2 <= 5e+264)
tmp = Float64(2.0 * Float64(Float64(Float64(t * z) + Float64(x * y)) - Float64(i / Float64(Float64(1.0 / fma(c, b, a)) / c))));
else
tmp = t_1;
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[(2.0 * N[(N[(t * z), $MachinePrecision] - N[(N[(c * N[(b * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, 5e+264], N[(2.0 * N[(N[(N[(t * z), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(i / N[(N[(1.0 / N[(c * b + a), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
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 := 2 \cdot \left(t \cdot z - \left(c \cdot \left(b \cdot \left(c \cdot i\right)\right) + c \cdot \left(a \cdot i\right)\right)\right)\\
t_2 := c \cdot \left(a + b \cdot c\right)\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+264}:\\
\;\;\;\;2 \cdot \left(\left(t \cdot z + x \cdot y\right) - \frac{i}{\frac{\frac{1}{\mathsf{fma}\left(c, b, a\right)}}{c}}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
Alternatives Alternative 1 Error 7.0 Cost 9936
\[\begin{array}{l}
t_1 := \left(c \cdot \left(a + b \cdot c\right)\right) \cdot i\\
t_2 := 2 \cdot \left(t \cdot z - t_1\right)\\
t_3 := c \cdot \left(b \cdot \left(c \cdot i\right)\right)\\
\mathbf{if}\;t_1 \leq -4 \cdot 10^{+287}:\\
\;\;\;\;2 \cdot \left(t \cdot z - \left(t_3 + c \cdot \left(a \cdot i\right)\right)\right)\\
\mathbf{elif}\;t_1 \leq -5 \cdot 10^{+114}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_1 \leq 4000000000000:\\
\;\;\;\;2 \cdot \mathsf{fma}\left(y, x, t \cdot z - a \cdot \left(c \cdot i\right)\right)\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+277}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \mathsf{fma}\left(y, x, t \cdot z - t_3\right)\\
\end{array}
\]
Alternative 2 Error 6.6 Cost 9164
\[\begin{array}{l}
t_1 := 2 \cdot \left(t \cdot z - \left(c \cdot \left(b \cdot \left(c \cdot i\right)\right) + c \cdot \left(a \cdot i\right)\right)\right)\\
t_2 := \left(c \cdot \left(a + b \cdot c\right)\right) \cdot i\\
t_3 := 2 \cdot \left(t \cdot z - t_2\right)\\
\mathbf{if}\;t_2 \leq -4 \cdot 10^{+287}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq -5 \cdot 10^{+114}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t_2 \leq 4000000000000:\\
\;\;\;\;2 \cdot \mathsf{fma}\left(y, x, t \cdot z - a \cdot \left(c \cdot i\right)\right)\\
\mathbf{elif}\;t_2 \leq 4 \cdot 10^{+286}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 3 Error 8.9 Cost 8780
\[\begin{array}{l}
t_1 := 2 \cdot \left(t \cdot z - \left(c \cdot \left(b \cdot \left(c \cdot i\right)\right) + c \cdot \left(a \cdot i\right)\right)\right)\\
t_2 := \left(c \cdot \left(a + b \cdot c\right)\right) \cdot i\\
t_3 := 2 \cdot \left(t \cdot z - t_2\right)\\
\mathbf{if}\;t_2 \leq -4 \cdot 10^{+287}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq -2 \cdot 10^{-10}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t_2 \leq 4000000000000:\\
\;\;\;\;2 \cdot \mathsf{fma}\left(y, x, t \cdot z\right)\\
\mathbf{elif}\;t_2 \leq 4 \cdot 10^{+286}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 4 Error 8.9 Cost 3792
\[\begin{array}{l}
t_1 := 2 \cdot \left(t \cdot z - \left(c \cdot \left(b \cdot \left(c \cdot i\right)\right) + c \cdot \left(a \cdot i\right)\right)\right)\\
t_2 := \left(c \cdot \left(a + b \cdot c\right)\right) \cdot i\\
t_3 := 2 \cdot \left(t \cdot z - t_2\right)\\
\mathbf{if}\;t_2 \leq -4 \cdot 10^{+287}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq -2 \cdot 10^{-10}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t_2 \leq 4000000000000:\\
\;\;\;\;2 \cdot \left(t \cdot z + x \cdot y\right)\\
\mathbf{elif}\;t_2 \leq 4 \cdot 10^{+286}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 5 Error 10.0 Cost 3536
\[\begin{array}{l}
t_1 := a + b \cdot c\\
t_2 := \left(c \cdot t_1\right) \cdot i\\
t_3 := 2 \cdot \left(t \cdot z - t_2\right)\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;2 \cdot \left(t \cdot z - c \cdot \left(c \cdot \left(b \cdot i\right)\right)\right)\\
\mathbf{elif}\;t_2 \leq -2 \cdot 10^{-10}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t_2 \leq 4000000000000:\\
\;\;\;\;2 \cdot \left(t \cdot z + x \cdot y\right)\\
\mathbf{elif}\;t_2 \leq 4 \cdot 10^{+286}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(t \cdot z - c \cdot \left(t_1 \cdot i\right)\right)\\
\end{array}
\]
Alternative 6 Error 18.1 Cost 1884
\[\begin{array}{l}
t_1 := 2 \cdot \left(x \cdot y - i \cdot \left(a \cdot c\right)\right)\\
t_2 := 2 \cdot \left(t \cdot z - c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right)\\
t_3 := 2 \cdot \left(t \cdot z + x \cdot y\right)\\
\mathbf{if}\;c \leq -8.2 \cdot 10^{-29}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -4.197398061787405 \cdot 10^{-135}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -4.309226070735741 \cdot 10^{-160}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.984449487175986 \cdot 10^{-195}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.850204756827436 \cdot 10^{-204}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq 1.2064372110878135 \cdot 10^{-136}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 3.913805027947862 \cdot 10^{-79}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 7 Error 22.9 Cost 1628
\[\begin{array}{l}
t_1 := 2 \cdot \left(t \cdot z + x \cdot y\right)\\
t_2 := \left(c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right) \cdot -2\\
t_3 := 2 \cdot \left(x \cdot y - i \cdot \left(a \cdot c\right)\right)\\
\mathbf{if}\;z \leq -7.8 \cdot 10^{+57}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.58593856817749 \cdot 10^{+30}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -5.365912491106748 \cdot 10^{-32}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.2106288143668117 \cdot 10^{-75}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -6.897065752762456 \cdot 10^{-151}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.771404663125861 \cdot 10^{-265}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 3.344883570490363 \cdot 10^{-234}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 8 Error 37.2 Cost 1244
\[\begin{array}{l}
t_1 := 2 \cdot \left(x \cdot y\right)\\
t_2 := 2 \cdot \left(t \cdot z\right)\\
t_3 := \left(i \cdot \left(a \cdot c\right)\right) \cdot -2\\
\mathbf{if}\;z \leq -3.8 \cdot 10^{+123}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{+94}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.7 \cdot 10^{+45}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -3.58593856817749 \cdot 10^{+30}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -1.30759128785578 \cdot 10^{-214}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -6.491854672573744 \cdot 10^{-244}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 1.951903396255144 \cdot 10^{-131}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 9 Error 37.2 Cost 1244
\[\begin{array}{l}
t_1 := 2 \cdot \left(x \cdot y\right)\\
t_2 := 2 \cdot \left(t \cdot z\right)\\
\mathbf{if}\;z \leq -3.8 \cdot 10^{+123}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{+94}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.7 \cdot 10^{+45}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -3.58593856817749 \cdot 10^{+30}:\\
\;\;\;\;\left(c \cdot i\right) \cdot \left(a \cdot -2\right)\\
\mathbf{elif}\;z \leq -1.30759128785578 \cdot 10^{-214}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -6.491854672573744 \cdot 10^{-244}:\\
\;\;\;\;\left(i \cdot \left(a \cdot c\right)\right) \cdot -2\\
\mathbf{elif}\;z \leq 1.951903396255144 \cdot 10^{-131}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 10 Error 23.4 Cost 1104
\[\begin{array}{l}
t_1 := 2 \cdot \left(t \cdot z + x \cdot y\right)\\
\mathbf{if}\;z \leq -2.7 \cdot 10^{+45}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.58593856817749 \cdot 10^{+30}:\\
\;\;\;\;\left(c \cdot i\right) \cdot \left(a \cdot -2\right)\\
\mathbf{elif}\;z \leq -1.30759128785578 \cdot 10^{-214}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -6.491854672573744 \cdot 10^{-244}:\\
\;\;\;\;\left(i \cdot \left(a \cdot c\right)\right) \cdot -2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 11 Error 22.7 Cost 968
\[\begin{array}{l}
\mathbf{if}\;c \leq -1.7 \cdot 10^{+83}:\\
\;\;\;\;c \cdot \left(b \cdot \left(i \cdot \left(c \cdot -2\right)\right)\right)\\
\mathbf{elif}\;c \leq 3.913805027947862 \cdot 10^{-79}:\\
\;\;\;\;2 \cdot \left(t \cdot z + x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(t \cdot z - c \cdot \left(a \cdot i\right)\right)\\
\end{array}
\]
Alternative 12 Error 21.7 Cost 968
\[\begin{array}{l}
\mathbf{if}\;c \leq -1.25 \cdot 10^{+36}:\\
\;\;\;\;\left(c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right) \cdot -2\\
\mathbf{elif}\;c \leq 3.913805027947862 \cdot 10^{-79}:\\
\;\;\;\;2 \cdot \left(t \cdot z + x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(t \cdot z - c \cdot \left(a \cdot i\right)\right)\\
\end{array}
\]
Alternative 13 Error 36.4 Cost 848
\[\begin{array}{l}
t_1 := 2 \cdot \left(x \cdot y\right)\\
t_2 := 2 \cdot \left(t \cdot z\right)\\
\mathbf{if}\;t \leq -3.512294892352042 \cdot 10^{-30}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 97505.87658007017:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.891258135971632 \cdot 10^{+74}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{+162}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 14 Error 22.0 Cost 708
\[\begin{array}{l}
\mathbf{if}\;c \leq -1.7 \cdot 10^{+83}:\\
\;\;\;\;c \cdot \left(b \cdot \left(i \cdot \left(c \cdot -2\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(t \cdot z + x \cdot y\right)\\
\end{array}
\]
Alternative 15 Error 42.6 Cost 320
\[2 \cdot \left(x \cdot y\right)
\]