Math FPCore C Julia Wolfram TeX \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b
\]
↓
\[\mathsf{fma}\left(\left(y + t\right) + -2, b, \mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(1 - t, a, x\right)\right)\right)
\]
(FPCore (x y z t a b)
:precision binary64
(+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b))) ↓
(FPCore (x y z t a b)
:precision binary64
(fma (+ (+ y t) -2.0) b (fma (- 1.0 y) z (fma (- 1.0 t) a x)))) double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
↓
double code(double x, double y, double z, double t, double a, double b) {
return fma(((y + t) + -2.0), b, fma((1.0 - y), z, fma((1.0 - t), a, x)));
}
function code(x, y, z, t, a, b)
return Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b))
end
↓
function code(x, y, z, t, a, b)
return fma(Float64(Float64(y + t) + -2.0), b, fma(Float64(1.0 - y), z, fma(Float64(1.0 - t), a, x)))
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(y + t), $MachinePrecision] + -2.0), $MachinePrecision] * b + N[(N[(1.0 - y), $MachinePrecision] * z + N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b
↓
\mathsf{fma}\left(\left(y + t\right) + -2, b, \mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(1 - t, a, x\right)\right)\right)
Alternatives Alternative 1 Accuracy 100.0% Cost 13888
\[\mathsf{fma}\left(y + \left(t + -2\right), b, x - \mathsf{fma}\left(y + -1, z, a \cdot \left(t + -1\right)\right)\right)
\]
Alternative 2 Accuracy 54.5% Cost 1900
\[\begin{array}{l}
t_1 := x + z \cdot \left(1 - y\right)\\
t_2 := b \cdot \left(\left(y + t\right) + -2\right)\\
t_3 := x - a \cdot \left(t + -1\right)\\
\mathbf{if}\;b \leq -1 \cdot 10^{+223}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1 \cdot 10^{+138}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.1 \cdot 10^{+111}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{+50}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -1.35 \cdot 10^{+25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{-271}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-249}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-168}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-81}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.55 \cdot 10^{+14}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{+82}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a + b \cdot \left(y + -2\right)\\
\end{array}
\]
Alternative 3 Accuracy 44.3% Cost 1768
\[\begin{array}{l}
t_1 := b \cdot \left(\left(y + t\right) + -2\right)\\
t_2 := x - t \cdot a\\
\mathbf{if}\;b \leq -2 \cdot 10^{+175}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -9 \cdot 10^{+54}:\\
\;\;\;\;a + x\\
\mathbf{elif}\;b \leq -1.56 \cdot 10^{+25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.05 \cdot 10^{-66}:\\
\;\;\;\;a + x\\
\mathbf{elif}\;b \leq -8.8 \cdot 10^{-196}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -9.5 \cdot 10^{-241}:\\
\;\;\;\;a + x\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{-261}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-167}:\\
\;\;\;\;a + x\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{-80}:\\
\;\;\;\;z - y \cdot z\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{+54}:\\
\;\;\;\;a + x\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 4 Accuracy 47.7% Cost 1636
\[\begin{array}{l}
t_1 := a + b \cdot \left(y + -2\right)\\
t_2 := z - y \cdot z\\
\mathbf{if}\;x \leq -8.6 \cdot 10^{+65}:\\
\;\;\;\;a + x\\
\mathbf{elif}\;x \leq -7 \cdot 10^{+43}:\\
\;\;\;\;b \cdot \left(\left(y + t\right) + -2\right)\\
\mathbf{elif}\;x \leq -5 \cdot 10^{+23}:\\
\;\;\;\;x - t \cdot a\\
\mathbf{elif}\;x \leq -4.3 \cdot 10^{-28}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.7 \cdot 10^{-144}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.1 \cdot 10^{-197}:\\
\;\;\;\;y \cdot \left(b - z\right)\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{-218}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -7 \cdot 10^{-305}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+77}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a + x\\
\end{array}
\]
Alternative 5 Accuracy 53.1% Cost 1636
\[\begin{array}{l}
t_1 := x + z \cdot \left(1 - y\right)\\
t_2 := b \cdot \left(\left(y + t\right) + -2\right)\\
\mathbf{if}\;b \leq -1 \cdot 10^{+223}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{+137}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -5.2 \cdot 10^{+109}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.3 \cdot 10^{-77}:\\
\;\;\;\;a + \left(x + y \cdot b\right)\\
\mathbf{elif}\;b \leq -4.4 \cdot 10^{-141}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -5.5 \cdot 10^{-176}:\\
\;\;\;\;\left(1 - t\right) \cdot a\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{-248}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 7.6 \cdot 10^{-211}:\\
\;\;\;\;a + x\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+82}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a + b \cdot \left(y + -2\right)\\
\end{array}
\]
Alternative 6 Accuracy 50.0% Cost 1504
\[\begin{array}{l}
t_1 := z - y \cdot z\\
t_2 := a + b \cdot \left(y + -2\right)\\
t_3 := a + \left(x + y \cdot b\right)\\
\mathbf{if}\;x \leq -6.5 \cdot 10^{+23}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.02 \cdot 10^{-29}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -4.2 \cdot 10^{-144}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{-195}:\\
\;\;\;\;y \cdot \left(b - z\right)\\
\mathbf{elif}\;x \leq -1.8 \cdot 10^{-221}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{-304}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.5:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 10^{+28}:\\
\;\;\;\;\left(1 - t\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\]
Alternative 7 Accuracy 60.5% Cost 1500
\[\begin{array}{l}
t_1 := x + z \cdot \left(1 - y\right)\\
t_2 := x - a \cdot \left(t + -1\right)\\
t_3 := x + b \cdot \left(\left(y + t\right) + -2\right)\\
\mathbf{if}\;b \leq -5 \cdot 10^{+109}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -1.05 \cdot 10^{+54}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.55 \cdot 10^{+24}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 6.6 \cdot 10^{-272}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{-249}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-168}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-105}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a + \left(x + b \cdot \left(y + -2\right)\right)\\
\end{array}
\]
Alternative 8 Accuracy 69.4% Cost 1500
\[\begin{array}{l}
t_1 := x + \left(z + \left(1 - t\right) \cdot a\right)\\
t_2 := x + b \cdot \left(\left(y + t\right) + -2\right)\\
\mathbf{if}\;b \leq -1.38 \cdot 10^{+197}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.3 \cdot 10^{+49}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.85 \cdot 10^{+25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{-194}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-37}:\\
\;\;\;\;x + \left(a + z \cdot \left(1 - y\right)\right)\\
\mathbf{elif}\;b \leq 1.36 \cdot 10^{+112}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{+123}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a + \left(x + b \cdot \left(y + -2\right)\right)\\
\end{array}
\]
Alternative 9 Accuracy 69.8% Cost 1500
\[\begin{array}{l}
t_1 := x + \left(z + \left(1 - t\right) \cdot a\right)\\
t_2 := x + b \cdot \left(\left(y + t\right) + -2\right)\\
\mathbf{if}\;b \leq -4.8 \cdot 10^{+109}:\\
\;\;\;\;z + \left(x + b \cdot \left(t + -2\right)\right)\\
\mathbf{elif}\;b \leq -6 \cdot 10^{+52}:\\
\;\;\;\;x - a \cdot \left(t + -1\right)\\
\mathbf{elif}\;b \leq -9 \cdot 10^{+25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{-197}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{-37}:\\
\;\;\;\;x + \left(a + z \cdot \left(1 - y\right)\right)\\
\mathbf{elif}\;b \leq 10^{+111}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+128}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a + \left(x + b \cdot \left(y + -2\right)\right)\\
\end{array}
\]
Alternative 10 Accuracy 85.0% Cost 1489
\[\begin{array}{l}
t_1 := z \cdot \left(1 - y\right)\\
t_2 := \left(x + b \cdot \left(\left(y + t\right) + -2\right)\right) + t_1\\
t_3 := a \cdot \left(t + -1\right)\\
\mathbf{if}\;b \leq -4.8 \cdot 10^{+109}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{+54}:\\
\;\;\;\;x - t_3\\
\mathbf{elif}\;b \leq -4.4 \cdot 10^{+24} \lor \neg \left(b \leq 1.6 \cdot 10^{-24}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;x + \left(t_1 - t_3\right)\\
\end{array}
\]
Alternative 11 Accuracy 42.3% Cost 1376
\[\begin{array}{l}
t_1 := \left(1 - t\right) \cdot a\\
\mathbf{if}\;x \leq -9.5 \cdot 10^{+58}:\\
\;\;\;\;a + x\\
\mathbf{elif}\;x \leq -0.72:\\
\;\;\;\;t \cdot \left(b - a\right)\\
\mathbf{elif}\;x \leq -1.5 \cdot 10^{-42}:\\
\;\;\;\;z\\
\mathbf{elif}\;x \leq -1.12 \cdot 10^{-131}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -4.8 \cdot 10^{-140}:\\
\;\;\;\;b \cdot \left(y + -2\right)\\
\mathbf{elif}\;x \leq -9 \cdot 10^{-197}:\\
\;\;\;\;y \cdot \left(b - z\right)\\
\mathbf{elif}\;x \leq -2.5 \cdot 10^{-204}:\\
\;\;\;\;-2 \cdot b\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+48}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a + x\\
\end{array}
\]
Alternative 12 Accuracy 87.3% Cost 1357
\[\begin{array}{l}
t_1 := z \cdot \left(1 - y\right)\\
t_2 := x + b \cdot \left(\left(y + t\right) + -2\right)\\
\mathbf{if}\;b \leq -5.6 \cdot 10^{+138}:\\
\;\;\;\;t_2 + t_1\\
\mathbf{elif}\;b \leq -3.3 \cdot 10^{-6} \lor \neg \left(b \leq 7.5 \cdot 10^{-41}\right):\\
\;\;\;\;t_2 + \left(1 - t\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;x + \left(t_1 - a \cdot \left(t + -1\right)\right)\\
\end{array}
\]
Alternative 13 Accuracy 100.0% Cost 1344
\[\left(\left(x + z \cdot \left(1 - y\right)\right) + \left(1 - t\right) \cdot a\right) + b \cdot \left(\left(y + t\right) + -2\right)
\]
Alternative 14 Accuracy 45.4% Cost 1244
\[\begin{array}{l}
t_1 := x - t \cdot a\\
t_2 := z - y \cdot z\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+135}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1.85 \cdot 10^{+112}:\\
\;\;\;\;a + x\\
\mathbf{elif}\;z \leq -6.6 \cdot 10^{+52}:\\
\;\;\;\;t \cdot \left(b - a\right)\\
\mathbf{elif}\;z \leq -8.6 \cdot 10^{-38}:\\
\;\;\;\;a + x\\
\mathbf{elif}\;z \leq -4.8 \cdot 10^{-221}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-40}:\\
\;\;\;\;a + x\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{+181}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 15 Accuracy 65.7% Cost 1108
\[\begin{array}{l}
t_1 := x + z \cdot \left(1 - y\right)\\
\mathbf{if}\;z \leq -1.6 \cdot 10^{+134}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.1 \cdot 10^{+96}:\\
\;\;\;\;x - a \cdot \left(t + -1\right)\\
\mathbf{elif}\;z \leq -1.22 \cdot 10^{+42}:\\
\;\;\;\;b \cdot \left(\left(y + t\right) + -2\right)\\
\mathbf{elif}\;z \leq 8.8 \cdot 10^{+48}:\\
\;\;\;\;a + \left(x + b \cdot \left(y + -2\right)\right)\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+81}:\\
\;\;\;\;t \cdot \left(b - a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 16 Accuracy 70.9% Cost 1105
\[\begin{array}{l}
t_1 := x + b \cdot \left(\left(y + t\right) + -2\right)\\
\mathbf{if}\;b \leq -4.8 \cdot 10^{+109}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{+54}:\\
\;\;\;\;x - a \cdot \left(t + -1\right)\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{+25} \lor \neg \left(b \leq 2.9 \cdot 10^{-37}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(a + z \cdot \left(1 - y\right)\right)\\
\end{array}
\]
Alternative 17 Accuracy 79.8% Cost 1104
\[\begin{array}{l}
\mathbf{if}\;b \leq -4.8 \cdot 10^{+109}:\\
\;\;\;\;z + \left(x + b \cdot \left(t + -2\right)\right)\\
\mathbf{elif}\;b \leq 6.4 \cdot 10^{-23}:\\
\;\;\;\;x + \left(z \cdot \left(1 - y\right) - a \cdot \left(t + -1\right)\right)\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{+110}:\\
\;\;\;\;x + b \cdot \left(\left(y + t\right) + -2\right)\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{+123}:\\
\;\;\;\;x + \left(z + \left(1 - t\right) \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(x + b \cdot \left(y + -2\right)\right)\\
\end{array}
\]
Alternative 18 Accuracy 43.5% Cost 984
\[\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;z \leq -3.2 \cdot 10^{+137}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq -2.1 \cdot 10^{+114}:\\
\;\;\;\;a + x\\
\mathbf{elif}\;z \leq -1.5 \cdot 10^{+54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{+19}:\\
\;\;\;\;a + x\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{+81}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{+175}:\\
\;\;\;\;a + x\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\]
Alternative 19 Accuracy 30.4% Cost 856
\[\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{+127}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq -2.7 \cdot 10^{-220}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 9.4 \cdot 10^{-250}:\\
\;\;\;\;a\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-162}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-121}:\\
\;\;\;\;a\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{+176}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\]
Alternative 20 Accuracy 43.6% Cost 584
\[\begin{array}{l}
\mathbf{if}\;x \leq -4.4 \cdot 10^{+41}:\\
\;\;\;\;a + x\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{+49}:\\
\;\;\;\;\left(1 - t\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;a + x\\
\end{array}
\]
Alternative 21 Accuracy 45.1% Cost 456
\[\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+138}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{+175}:\\
\;\;\;\;a + x\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\]
Alternative 22 Accuracy 32.7% Cost 328
\[\begin{array}{l}
\mathbf{if}\;x \leq -6.5 \cdot 10^{-19}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{+54}:\\
\;\;\;\;a\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 23 Accuracy 16.0% Cost 64
\[a
\]