- Split input into 5 regimes
if z < -6.4832562982794285e109
Initial program 55.9
\[\sqrt{\frac{\left(x \cdot x + y \cdot y\right) + z \cdot z}{3}}\]
Taylor expanded around 0 55.9
\[\leadsto \sqrt{\color{blue}{0.333333333333333315 \cdot {z}^{2} + \left(0.333333333333333315 \cdot {x}^{2} + 0.333333333333333315 \cdot {y}^{2}\right)}}\]
Simplified55.9
\[\leadsto \sqrt{\color{blue}{0.333333333333333315 \cdot \left(z \cdot z + \left(x \cdot x + y \cdot y\right)\right)}}\]
Taylor expanded around -inf 16.9
\[\leadsto \color{blue}{-1 \cdot \left(\sqrt{0.333333333333333315} \cdot z\right)}\]
Simplified16.9
\[\leadsto \color{blue}{-\sqrt{0.333333333333333315} \cdot z}\]
- Using strategy
rm Applied add-sqr-sqrt16.9
\[\leadsto -\sqrt{\color{blue}{\sqrt{0.333333333333333315} \cdot \sqrt{0.333333333333333315}}} \cdot z\]
Applied sqrt-prod16.9
\[\leadsto -\color{blue}{\left(\sqrt{\sqrt{0.333333333333333315}} \cdot \sqrt{\sqrt{0.333333333333333315}}\right)} \cdot z\]
Applied associate-*l*16.8
\[\leadsto -\color{blue}{\sqrt{\sqrt{0.333333333333333315}} \cdot \left(\sqrt{\sqrt{0.333333333333333315}} \cdot z\right)}\]
if -6.4832562982794285e109 < z < -6.76711637978129667e-39 or -2.75293092782325262e-72 < z < 4.5250489584728597e-142 or 3.2709223867076652e-84 < z < 6.48185526099689738e118
Initial program 29.7
\[\sqrt{\frac{\left(x \cdot x + y \cdot y\right) + z \cdot z}{3}}\]
Taylor expanded around 0 29.7
\[\leadsto \sqrt{\color{blue}{0.333333333333333315 \cdot {z}^{2} + \left(0.333333333333333315 \cdot {x}^{2} + 0.333333333333333315 \cdot {y}^{2}\right)}}\]
Simplified29.7
\[\leadsto \sqrt{\color{blue}{0.333333333333333315 \cdot \left(z \cdot z + \left(x \cdot x + y \cdot y\right)\right)}}\]
if -6.76711637978129667e-39 < z < -2.75293092782325262e-72
Initial program 29.9
\[\sqrt{\frac{\left(x \cdot x + y \cdot y\right) + z \cdot z}{3}}\]
- Using strategy
rm Applied sqrt-div30.0
\[\leadsto \color{blue}{\frac{\sqrt{\left(x \cdot x + y \cdot y\right) + z \cdot z}}{\sqrt{3}}}\]
Taylor expanded around inf 49.6
\[\leadsto \frac{\color{blue}{x}}{\sqrt{3}}\]
if 4.5250489584728597e-142 < z < 3.2709223867076652e-84
Initial program 28.5
\[\sqrt{\frac{\left(x \cdot x + y \cdot y\right) + z \cdot z}{3}}\]
- Using strategy
rm Applied sqrt-div28.7
\[\leadsto \color{blue}{\frac{\sqrt{\left(x \cdot x + y \cdot y\right) + z \cdot z}}{\sqrt{3}}}\]
Taylor expanded around -inf 46.4
\[\leadsto \frac{\color{blue}{-1 \cdot x}}{\sqrt{3}}\]
Simplified46.4
\[\leadsto \frac{\color{blue}{-x}}{\sqrt{3}}\]
if 6.48185526099689738e118 < z
Initial program 57.8
\[\sqrt{\frac{\left(x \cdot x + y \cdot y\right) + z \cdot z}{3}}\]
- Using strategy
rm Applied sqrt-div57.8
\[\leadsto \color{blue}{\frac{\sqrt{\left(x \cdot x + y \cdot y\right) + z \cdot z}}{\sqrt{3}}}\]
Taylor expanded around 0 17.6
\[\leadsto \frac{\color{blue}{z}}{\sqrt{3}}\]
- Recombined 5 regimes into one program.
Final simplification26.9
\[\leadsto \begin{array}{l}
\mathbf{if}\;z \le -6.4832562982794285 \cdot 10^{109}:\\
\;\;\;\;-\sqrt{\sqrt{0.333333333333333315}} \cdot \left(\sqrt{\sqrt{0.333333333333333315}} \cdot z\right)\\
\mathbf{elif}\;z \le -6.76711637978129667 \cdot 10^{-39}:\\
\;\;\;\;\sqrt{0.333333333333333315 \cdot \left(z \cdot z + \left(x \cdot x + y \cdot y\right)\right)}\\
\mathbf{elif}\;z \le -2.75293092782325262 \cdot 10^{-72}:\\
\;\;\;\;\frac{x}{\sqrt{3}}\\
\mathbf{elif}\;z \le 4.5250489584728597 \cdot 10^{-142}:\\
\;\;\;\;\sqrt{0.333333333333333315 \cdot \left(z \cdot z + \left(x \cdot x + y \cdot y\right)\right)}\\
\mathbf{elif}\;z \le 3.2709223867076652 \cdot 10^{-84}:\\
\;\;\;\;\frac{-x}{\sqrt{3}}\\
\mathbf{elif}\;z \le 6.48185526099689738 \cdot 10^{118}:\\
\;\;\;\;\sqrt{0.333333333333333315 \cdot \left(z \cdot z + \left(x \cdot x + y \cdot y\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{\sqrt{3}}\\
\end{array}\]