- Split input into 4 regimes
if y < -4.8867027686569046e-05
Initial program 32.1
\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}\]
Initial simplification32.1
\[\leadsto \frac{\left(x - y\right) \cdot \left(y + x\right)}{x \cdot x + y \cdot y}\]
Taylor expanded around 0 0.0
\[\leadsto \color{blue}{-1}\]
if -4.8867027686569046e-05 < y < -2.567264824776326e-242
Initial program 10.5
\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}\]
Initial simplification10.5
\[\leadsto \frac{\left(x - y\right) \cdot \left(y + x\right)}{x \cdot x + y \cdot y}\]
- Using strategy
rm Applied associate-/l*11.1
\[\leadsto \color{blue}{\frac{x - y}{\frac{x \cdot x + y \cdot y}{y + x}}}\]
if -2.567264824776326e-242 < y < 1.6303931522933684e-165
Initial program 29.4
\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}\]
Initial simplification29.4
\[\leadsto \frac{\left(x - y\right) \cdot \left(y + x\right)}{x \cdot x + y \cdot y}\]
- Using strategy
rm Applied associate-/l*29.7
\[\leadsto \color{blue}{\frac{x - y}{\frac{x \cdot x + y \cdot y}{y + x}}}\]
- Using strategy
rm Applied add-cbrt-cube40.7
\[\leadsto \frac{x - y}{\color{blue}{\sqrt[3]{\left(\frac{x \cdot x + y \cdot y}{y + x} \cdot \frac{x \cdot x + y \cdot y}{y + x}\right) \cdot \frac{x \cdot x + y \cdot y}{y + x}}}}\]
Applied add-cbrt-cube40.5
\[\leadsto \frac{\color{blue}{\sqrt[3]{\left(\left(x - y\right) \cdot \left(x - y\right)\right) \cdot \left(x - y\right)}}}{\sqrt[3]{\left(\frac{x \cdot x + y \cdot y}{y + x} \cdot \frac{x \cdot x + y \cdot y}{y + x}\right) \cdot \frac{x \cdot x + y \cdot y}{y + x}}}\]
Applied cbrt-undiv40.4
\[\leadsto \color{blue}{\sqrt[3]{\frac{\left(\left(x - y\right) \cdot \left(x - y\right)\right) \cdot \left(x - y\right)}{\left(\frac{x \cdot x + y \cdot y}{y + x} \cdot \frac{x \cdot x + y \cdot y}{y + x}\right) \cdot \frac{x \cdot x + y \cdot y}{y + x}}}}\]
Simplified29.4
\[\leadsto \sqrt[3]{\color{blue}{{\left(\frac{\left(x - y\right) \cdot \left(y + x\right)}{x \cdot x + y \cdot y}\right)}^{3}}}\]
Taylor expanded around inf 12.4
\[\leadsto \color{blue}{1}\]
if 1.6303931522933684e-165 < y
Initial program 0.8
\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}\]
Initial simplification0.8
\[\leadsto \frac{\left(x - y\right) \cdot \left(y + x\right)}{x \cdot x + y \cdot y}\]
- Using strategy
rm Applied associate-/l*1.4
\[\leadsto \color{blue}{\frac{x - y}{\frac{x \cdot x + y \cdot y}{y + x}}}\]
- Using strategy
rm Applied add-cbrt-cube16.2
\[\leadsto \frac{x - y}{\color{blue}{\sqrt[3]{\left(\frac{x \cdot x + y \cdot y}{y + x} \cdot \frac{x \cdot x + y \cdot y}{y + x}\right) \cdot \frac{x \cdot x + y \cdot y}{y + x}}}}\]
Applied add-cbrt-cube15.5
\[\leadsto \frac{\color{blue}{\sqrt[3]{\left(\left(x - y\right) \cdot \left(x - y\right)\right) \cdot \left(x - y\right)}}}{\sqrt[3]{\left(\frac{x \cdot x + y \cdot y}{y + x} \cdot \frac{x \cdot x + y \cdot y}{y + x}\right) \cdot \frac{x \cdot x + y \cdot y}{y + x}}}\]
Applied cbrt-undiv15.4
\[\leadsto \color{blue}{\sqrt[3]{\frac{\left(\left(x - y\right) \cdot \left(x - y\right)\right) \cdot \left(x - y\right)}{\left(\frac{x \cdot x + y \cdot y}{y + x} \cdot \frac{x \cdot x + y \cdot y}{y + x}\right) \cdot \frac{x \cdot x + y \cdot y}{y + x}}}}\]
Simplified0.8
\[\leadsto \sqrt[3]{\color{blue}{{\left(\frac{\left(x - y\right) \cdot \left(y + x\right)}{x \cdot x + y \cdot y}\right)}^{3}}}\]
- Recombined 4 regimes into one program.
Final simplification5.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;y \le -4.8867027686569046 \cdot 10^{-05}:\\
\;\;\;\;-1\\
\mathbf{elif}\;y \le -2.567264824776326 \cdot 10^{-242}:\\
\;\;\;\;\frac{x - y}{\frac{x \cdot x + y \cdot y}{y + x}}\\
\mathbf{elif}\;y \le 1.6303931522933684 \cdot 10^{-165}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\sqrt[3]{{\left(\frac{\left(y + x\right) \cdot \left(x - y\right)}{x \cdot x + y \cdot y}\right)}^{3}}\\
\end{array}\]