- Split input into 3 regimes
if y < -1.3337852543374606e+154 or 3.682302512490061e-197 < y < 2.1250373042840873e-173
Initial program 59.6
\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}\]
Simplified59.6
\[\leadsto \color{blue}{\frac{\left(x - y\right) \cdot \left(y + x\right)}{(x \cdot x + \left(y \cdot y\right))_*}}\]
Taylor expanded around 0 4.4
\[\leadsto \color{blue}{-1}\]
if -1.3337852543374606e+154 < y < -5.003071307679352e-158 or 2.1250373042840873e-173 < y
Initial program 0.6
\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}\]
Simplified0.6
\[\leadsto \color{blue}{\frac{\left(x - y\right) \cdot \left(y + x\right)}{(x \cdot x + \left(y \cdot y\right))_*}}\]
if -5.003071307679352e-158 < y < 3.682302512490061e-197
Initial program 29.5
\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}\]
Simplified29.5
\[\leadsto \color{blue}{\frac{\left(x - y\right) \cdot \left(y + x\right)}{(x \cdot x + \left(y \cdot y\right))_*}}\]
Taylor expanded around -inf 14.5
\[\leadsto \color{blue}{1}\]
- Recombined 3 regimes into one program.
Final simplification5.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;y \le -1.3337852543374606 \cdot 10^{+154}:\\
\;\;\;\;-1\\
\mathbf{elif}\;y \le -5.003071307679352 \cdot 10^{-158}:\\
\;\;\;\;\frac{\left(x - y\right) \cdot \left(y + x\right)}{(x \cdot x + \left(y \cdot y\right))_*}\\
\mathbf{elif}\;y \le 3.682302512490061 \cdot 10^{-197}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \le 2.1250373042840873 \cdot 10^{-173}:\\
\;\;\;\;-1\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - y\right) \cdot \left(y + x\right)}{(x \cdot x + \left(y \cdot y\right))_*}\\
\end{array}\]