| Alternative 1 |
|---|
| Accuracy | 99.9% |
|---|
| Cost | 33156 |
|---|
\[\begin{array}{l}
t_0 := \left(e^{x} - 2\right) + e^{-x}\\
\mathbf{if}\;t_0 \leq 5 \cdot 10^{-5}:\\
\;\;\;\;\mathsf{fma}\left(0.002777777777777778, {x}^{6}, x \cdot x + 0.08333333333333333 \cdot {x}^{4}\right)\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 2 |
|---|
| Accuracy | 99.8% |
|---|
| Cost | 26436 |
|---|
\[\begin{array}{l}
t_0 := \left(e^{x} - 2\right) + e^{-x}\\
\mathbf{if}\;t_0 \leq 10^{-8}:\\
\;\;\;\;x \cdot x + 0.08333333333333333 \cdot {x}^{4}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 3 |
|---|
| Accuracy | 99.9% |
|---|
| Cost | 26436 |
|---|
\[\begin{array}{l}
t_0 := \left(e^{x} - 2\right) + e^{-x}\\
\mathbf{if}\;t_0 \leq 10^{-8}:\\
\;\;\;\;\mathsf{fma}\left(x, x, 0.08333333333333333 \cdot {x}^{4}\right)\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 4 |
|---|
| Accuracy | 99.6% |
|---|
| Cost | 7176 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -2.6:\\
\;\;\;\;\mathsf{expm1}\left(-x\right)\\
\mathbf{elif}\;x \leq 2.6:\\
\;\;\;\;x \cdot x + 0.08333333333333333 \cdot {x}^{4}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{expm1}\left(x\right)\\
\end{array}
\]
| Alternative 5 |
|---|
| Accuracy | 93.5% |
|---|
| Cost | 6728 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.5:\\
\;\;\;\;\frac{\left(x \cdot x\right) \cdot \left(0.25 - x \cdot \left(x \cdot 0.027777777777777776\right)\right)}{0.5 + x \cdot 0.16666666666666666} - x\\
\mathbf{elif}\;x \leq 1.65:\\
\;\;\;\;x \cdot x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{expm1}\left(x\right)\\
\end{array}
\]
| Alternative 6 |
|---|
| Accuracy | 99.3% |
|---|
| Cost | 6728 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.65:\\
\;\;\;\;\mathsf{expm1}\left(-x\right)\\
\mathbf{elif}\;x \leq 1.65:\\
\;\;\;\;x \cdot x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{expm1}\left(x\right)\\
\end{array}
\]
| Alternative 7 |
|---|
| Accuracy | 81.9% |
|---|
| Cost | 1348 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.5:\\
\;\;\;\;\frac{\left(x \cdot x\right) \cdot \left(0.25 - x \cdot \left(x \cdot 0.027777777777777776\right)\right)}{0.5 + x \cdot 0.16666666666666666} - x\\
\mathbf{else}:\\
\;\;\;\;x \cdot x\\
\end{array}
\]
| Alternative 8 |
|---|
| Accuracy | 80.0% |
|---|
| Cost | 836 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.5:\\
\;\;\;\;\left(x \cdot x\right) \cdot \left(0.5 + x \cdot -0.16666666666666666\right) - x\\
\mathbf{else}:\\
\;\;\;\;x \cdot x\\
\end{array}
\]