- Split input into 4 regimes
if y < -1.3260829756027319e+154
Initial program 63.6
\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}\]
- Using strategy
rm Applied add-sqr-sqrt63.6
\[\leadsto \frac{\left(x - y\right) \cdot \left(x + y\right)}{\color{blue}{\sqrt{x \cdot x + y \cdot y} \cdot \sqrt{x \cdot x + y \cdot y}}}\]
Applied times-frac62.0
\[\leadsto \color{blue}{\frac{x - y}{\sqrt{x \cdot x + y \cdot y}} \cdot \frac{x + y}{\sqrt{x \cdot x + y \cdot y}}}\]
Taylor expanded around 0 0
\[\leadsto \color{blue}{-1}\]
if -1.3260829756027319e+154 < y < -2.520984219310479e-162
Initial program 0.0
\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}\]
if -2.520984219310479e-162 < y < 5.597322664028254e-167
Initial program 29.2
\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}\]
- Using strategy
rm Applied add-sqr-sqrt29.2
\[\leadsto \frac{\left(x - y\right) \cdot \left(x + y\right)}{\color{blue}{\sqrt{x \cdot x + y \cdot y} \cdot \sqrt{x \cdot x + y \cdot y}}}\]
Applied times-frac29.6
\[\leadsto \color{blue}{\frac{x - y}{\sqrt{x \cdot x + y \cdot y}} \cdot \frac{x + y}{\sqrt{x \cdot x + y \cdot y}}}\]
Taylor expanded around inf 15.4
\[\leadsto \color{blue}{1}\]
if 5.597322664028254e-167 < y
Initial program 1.0
\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}\]
- Using strategy
rm Applied add-sqr-sqrt1.0
\[\leadsto \frac{\left(x - y\right) \cdot \left(x + y\right)}{\color{blue}{\sqrt{x \cdot x + y \cdot y} \cdot \sqrt{x \cdot x + y \cdot y}}}\]
Applied times-frac1.5
\[\leadsto \color{blue}{\frac{x - y}{\sqrt{x \cdot x + y \cdot y}} \cdot \frac{x + y}{\sqrt{x \cdot x + y \cdot y}}}\]
- Recombined 4 regimes into one program.
Final simplification5.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;y \le -1.3260829756027319 \cdot 10^{+154}:\\
\;\;\;\;-1\\
\mathbf{elif}\;y \le -2.520984219310479 \cdot 10^{-162}:\\
\;\;\;\;\frac{\left(x - y\right) \cdot \left(y + x\right)}{y \cdot y + x \cdot x}\\
\mathbf{elif}\;y \le 5.597322664028254 \cdot 10^{-167}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x - y}{\sqrt{y \cdot y + x \cdot x}} \cdot \frac{y + x}{\sqrt{y \cdot y + x \cdot x}}\\
\end{array}\]