| Alternative 1 |
|---|
| Error | 0.1 |
|---|
| Cost | 6848 |
|---|
\[\mathsf{fma}\left(y, y \cdot 3, x \cdot x\right)
\]
| Alternative 2 |
|---|
| Error | 13.6 |
|---|
| Cost | 2140 |
|---|
\[\begin{array}{l}
t_0 := y \cdot \left(y \cdot 3\right)\\
\mathbf{if}\;y \cdot y \leq 4 \cdot 10^{-238}:\\
\;\;\;\;x \cdot x\\
\mathbf{elif}\;y \cdot y \leq 5 \cdot 10^{-214}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \cdot y \leq 5 \cdot 10^{-114}:\\
\;\;\;\;x \cdot x\\
\mathbf{elif}\;y \cdot y \leq 10^{-88}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \cdot y \leq 10^{-48}:\\
\;\;\;\;x \cdot x\\
\mathbf{elif}\;y \cdot y \leq 5:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \cdot y \leq 2 \cdot 10^{+42}:\\
\;\;\;\;x \cdot x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 3 |
|---|
| Error | 12.8 |
|---|
| Cost | 1748 |
|---|
\[\begin{array}{l}
t_0 := y \cdot y + x \cdot x\\
t_1 := y \cdot \left(y \cdot 3\right)\\
\mathbf{if}\;y \cdot y \leq 2 \cdot 10^{-235}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \cdot y \leq 5 \cdot 10^{-214}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \cdot y \leq 10^{-48}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \cdot y \leq 5:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \cdot y \leq 2 \cdot 10^{+42}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 4 |
|---|
| Error | 0.1 |
|---|
| Cost | 576 |
|---|
\[x \cdot x + y \cdot \left(y \cdot 3\right)
\]
| Alternative 5 |
|---|
| Error | 25.4 |
|---|
| Cost | 456 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -8.508733983896255 \cdot 10^{-151}:\\
\;\;\;\;x \cdot x\\
\mathbf{elif}\;x \leq 5.04611013677248 \cdot 10^{-145}:\\
\;\;\;\;y \cdot y\\
\mathbf{else}:\\
\;\;\;\;x \cdot x\\
\end{array}
\]