- Split input into 2 regimes
if b < 1.9370358045074967e+152
Initial program 27.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Simplified27.2
\[\leadsto \color{blue}{\frac{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b}{2}}{a}}\]
- Using strategy
rm Applied add-sqr-sqrt27.2
\[\leadsto \frac{\frac{\sqrt{\color{blue}{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} \cdot \sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*}}} - b}{2}}{a}\]
Applied sqrt-prod28.1
\[\leadsto \frac{\frac{\color{blue}{\sqrt{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*}} \cdot \sqrt{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*}}} - b}{2}}{a}\]
- Using strategy
rm Applied rem-square-sqrt27.2
\[\leadsto \frac{\frac{\color{blue}{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*}} - b}{2}}{a}\]
if 1.9370358045074967e+152 < b
Initial program 62.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Simplified62.7
\[\leadsto \color{blue}{\frac{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b}{2}}{a}}\]
Taylor expanded around 0 37.9
\[\leadsto \color{blue}{0}\]
- Recombined 2 regimes into one program.
Final simplification29.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le 1.9370358045074967 \cdot 10^{+152}:\\
\;\;\;\;\frac{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b}{2}}{a}\\
\mathbf{else}:\\
\;\;\;\;0\\
\end{array}\]