- Split input into 3 regimes
if b < -9.229839583375616e+152
Initial program 60.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 60.3
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{b}^{2} - 3 \cdot \left(a \cdot c\right)}}}{3 \cdot a}\]
Simplified60.2
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*}}}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*60.2
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) + \sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*}}{3}}{a}}\]
Taylor expanded around -inf 2.8
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b} - \frac{2}{3} \cdot \frac{b}{a}}\]
Simplified2.8
\[\leadsto \color{blue}{(\frac{-2}{3} \cdot \left(\frac{b}{a}\right) + \left(\frac{c}{\frac{b}{\frac{1}{2}}}\right))_*}\]
if -9.229839583375616e+152 < b < 4.4690311428783294e-172
Initial program 10.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 10.1
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{b}^{2} - 3 \cdot \left(a \cdot c\right)}}}{3 \cdot a}\]
Simplified10.1
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*}}}{3 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity10.1
\[\leadsto \frac{\left(-b\right) + \color{blue}{1 \cdot \sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*}}}{3 \cdot a}\]
Applied *-un-lft-identity10.1
\[\leadsto \frac{\color{blue}{1 \cdot \left(-b\right)} + 1 \cdot \sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*}}{3 \cdot a}\]
Applied distribute-lft-out10.1
\[\leadsto \frac{\color{blue}{1 \cdot \left(\left(-b\right) + \sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*}\right)}}{3 \cdot a}\]
Applied times-frac10.2
\[\leadsto \color{blue}{\frac{1}{3} \cdot \frac{\left(-b\right) + \sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*}}{a}}\]
Simplified10.2
\[\leadsto \color{blue}{\frac{1}{3}} \cdot \frac{\left(-b\right) + \sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*}}{a}\]
Simplified10.3
\[\leadsto \frac{1}{3} \cdot \color{blue}{\frac{\sqrt{(a \cdot \left(-3 \cdot c\right) + \left(b \cdot b\right))_*} - b}{a}}\]
if 4.4690311428783294e-172 < b
Initial program 48.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 48.9
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{b}^{2} - 3 \cdot \left(a \cdot c\right)}}}{3 \cdot a}\]
Simplified48.9
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*}}}{3 \cdot a}\]
Taylor expanded around inf 13.8
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b}}\]
- Recombined 3 regimes into one program.
Final simplification11.0
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -9.229839583375616 \cdot 10^{+152}:\\
\;\;\;\;(\frac{-2}{3} \cdot \left(\frac{b}{a}\right) + \left(\frac{c}{\frac{b}{\frac{1}{2}}}\right))_*\\
\mathbf{elif}\;b \le 4.4690311428783294 \cdot 10^{-172}:\\
\;\;\;\;\frac{1}{3} \cdot \frac{\sqrt{(a \cdot \left(-3 \cdot c\right) + \left(b \cdot b\right))_*} - b}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot \frac{-1}{2}\\
\end{array}\]