- Split input into 2 regimes
if a < -145.74288793026716 or 0.055311120503756486 < a
Initial program 0.5
\[\left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \left(b \cdot b\right)\right) - 1\]
Taylor expanded around 0 6.1
\[\leadsto \color{blue}{\left(4 \cdot {b}^{2} + \left({a}^{4} + 2 \cdot \left({b}^{2} \cdot {a}^{2}\right)\right)\right)} - 1\]
Applied simplify6.1
\[\leadsto \color{blue}{(\left((\left(2 \cdot a\right) \cdot a + 4)_*\right) \cdot \left(b \cdot b\right) + \left({a}^{4} - 1\right))_*}\]
if -145.74288793026716 < a < 0.055311120503756486
Initial program 0.1
\[\left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \left(b \cdot b\right)\right) - 1\]
Taylor expanded around 0 0.3
\[\leadsto \left(\color{blue}{{b}^{4}} + 4 \cdot \left(b \cdot b\right)\right) - 1\]
Applied simplify0.3
\[\leadsto \color{blue}{(\left(4 \cdot b\right) \cdot b + \left({b}^{4} - 1\right))_*}\]
- Recombined 2 regimes into one program.
Applied simplify1.4
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;a \le -145.74288793026716 \lor \neg \left(a \le 0.055311120503756486\right):\\
\;\;\;\;(\left((\left(2 \cdot a\right) \cdot a + 4)_*\right) \cdot \left(b \cdot b\right) + \left({a}^{4} - 1\right))_*\\
\mathbf{else}:\\
\;\;\;\;(\left(4 \cdot b\right) \cdot b + \left({b}^{4} - 1\right))_*\\
\end{array}}\]