- Split input into 3 regimes
if (- b) < -1.5226383508946404e+119
Initial program 50.1
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied associate-/r*50.1
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2}}{a}}\]
- Using strategy
rm Applied div-inv50.1
\[\leadsto \color{blue}{\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2} \cdot \frac{1}{a}}\]
Taylor expanded around inf 3.7
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Simplified3.7
\[\leadsto \color{blue}{\frac{-b}{a}}\]
if -1.5226383508946404e+119 < (- b) < 1.8160081293285892e+30
Initial program 17.9
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied associate-/r*17.9
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2}}{a}}\]
- Using strategy
rm Applied *-un-lft-identity17.9
\[\leadsto \frac{\color{blue}{1 \cdot \frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2}}}{a}\]
Applied associate-/l*18.0
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2}}}}\]
if 1.8160081293285892e+30 < (- b)
Initial program 56.1
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 14.9
\[\leadsto \frac{\color{blue}{-2 \cdot \frac{a \cdot c}{b}}}{2 \cdot a}\]
- Recombined 3 regimes into one program.
Final simplification15.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;-b \le -1.5226383508946404 \cdot 10^{+119}:\\
\;\;\;\;\frac{-b}{a}\\
\mathbf{elif}\;-b \le 1.8160081293285892 \cdot 10^{+30}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{\left(-b\right) - \sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4}}{2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{-2 \cdot \frac{c \cdot a}{b}}{a \cdot 2}\\
\end{array}\]