\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}
\]
Simplified64.0
\[\leadsto \color{blue}{\frac{x \cdot x - y \cdot y}{x \cdot x + y \cdot y}}
\]
Proof
[Start]64.0
\[ \frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}
\]
rational.json-simplify-2 [=>]64.0
\[ \frac{\color{blue}{\left(x + y\right) \cdot \left(x - y\right)}}{x \cdot x + y \cdot y}
\]
rational.json-simplify-1 [=>]64.0
\[ \frac{\color{blue}{\left(y + x\right)} \cdot \left(x - y\right)}{x \cdot x + y \cdot y}
\]
rational.json-simplify-61 [=>]64.0
\[ \frac{\color{blue}{x \cdot x - y \cdot y}}{x \cdot x + y \cdot y}
\]
Taylor expanded in x around 0 0
\[\leadsto \color{blue}{-1}
\]
if -2.00000000000000001e160 < y < -1.7999999999999999e-153
Initial program 1.5
\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}
\]
Simplified1.5
\[\leadsto \color{blue}{\frac{x \cdot x - y \cdot y}{x \cdot x + y \cdot y}}
\]
Proof
[Start]1.5
\[ \frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}
\]
rational.json-simplify-2 [=>]1.5
\[ \frac{\color{blue}{\left(x + y\right) \cdot \left(x - y\right)}}{x \cdot x + y \cdot y}
\]
rational.json-simplify-1 [=>]1.5
\[ \frac{\color{blue}{\left(y + x\right)} \cdot \left(x - y\right)}{x \cdot x + y \cdot y}
\]
rational.json-simplify-61 [=>]1.5
\[ \frac{\color{blue}{x \cdot x - y \cdot y}}{x \cdot x + y \cdot y}
\]
Applied egg-rr1.5
\[\leadsto \color{blue}{\frac{1}{\frac{x \cdot x - y \cdot y}{x \cdot x + y \cdot y}} \cdot \left(\frac{x \cdot x - y \cdot y}{x \cdot x + y \cdot y} \cdot \frac{x \cdot x - y \cdot y}{x \cdot x + y \cdot y}\right)}
\]
if -1.7999999999999999e-153 < y < 1.17999999999999999e-172
Initial program 28.8
\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}
\]
Simplified28.8
\[\leadsto \color{blue}{\frac{x \cdot x - y \cdot y}{x \cdot x + y \cdot y}}
\]
Proof
[Start]28.8
\[ \frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}
\]
rational.json-simplify-2 [=>]28.8
\[ \frac{\color{blue}{\left(x + y\right) \cdot \left(x - y\right)}}{x \cdot x + y \cdot y}
\]
rational.json-simplify-1 [=>]28.8
\[ \frac{\color{blue}{\left(y + x\right)} \cdot \left(x - y\right)}{x \cdot x + y \cdot y}
\]
rational.json-simplify-61 [=>]28.8
\[ \frac{\color{blue}{x \cdot x - y \cdot y}}{x \cdot x + y \cdot y}
\]
Taylor expanded in x around inf 15.6
\[\leadsto \color{blue}{1}
\]
if 1.17999999999999999e-172 < y
Initial program 1.5
\[\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}
\]
Recombined 4 regimes into one program.
Final simplification5.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{+160}:\\
\;\;\;\;-1\\
\mathbf{elif}\;y \leq -1.8 \cdot 10^{-153}:\\
\;\;\;\;\frac{1}{\frac{x \cdot x - y \cdot y}{x \cdot x + y \cdot y}} \cdot \left(\frac{x \cdot x - y \cdot y}{x \cdot x + y \cdot y} \cdot \frac{x \cdot x - y \cdot y}{x \cdot x + y \cdot y}\right)\\
\mathbf{elif}\;y \leq 1.18 \cdot 10^{-172}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - y\right) \cdot \left(x + y\right)}{x \cdot x + y \cdot y}\\
\end{array}
\]