| Alternative 1 | |
|---|---|
| Error | 0.5 |
| Cost | 1800 |
\[\begin{array}{l}
\mathbf{if}\;x + 1 \leq 0.9996:\\
\;\;\;\;\left(x + 1\right) \cdot \left(x + 1\right) - 1\\
\mathbf{elif}\;x + 1 \leq 1.0000002:\\
\;\;\;\;2 \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-1 - x\right) \cdot \left(-1 - x\right)\right) \cdot \left(1 + \left(-\frac{\frac{1}{-1 - x}}{-1 - x}\right)\right)\\
\end{array}
\]