| Alternative 1 | |
|---|---|
| Error | 0.6 |
| Cost | 1352 |
\[\begin{array}{l}
\mathbf{if}\;x + 1 \leq 0.99999998:\\
\;\;\;\;\left(x + 1\right) \cdot \left(x + 1\right) - 1\\
\mathbf{elif}\;x + 1 \leq 1.02:\\
\;\;\;\;2 \cdot x\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x + 1\right) \cdot \left(x + \left(x + 2\right)\right)}{2} - 1\\
\end{array}
\]