- Split input into 3 regimes
if b < -7.831748553927705e+153
Initial program 60.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification60.8
\[\leadsto \frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{2 \cdot a}\]
- Using strategy
rm Applied div-sub60.8
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} - \frac{b}{2 \cdot a}}\]
- Using strategy
rm Applied div-inv60.8
\[\leadsto \color{blue}{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} \cdot \frac{1}{2 \cdot a}} - \frac{b}{2 \cdot a}\]
Taylor expanded around -inf 2.3
\[\leadsto \color{blue}{\left(\frac{c}{b} - \frac{1}{2} \cdot \frac{b}{a}\right)} - \frac{b}{2 \cdot a}\]
if -7.831748553927705e+153 < b < 9.075353573798497e-157
Initial program 10.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification10.5
\[\leadsto \frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{2 \cdot a}\]
- Using strategy
rm Applied div-sub10.5
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} - \frac{b}{2 \cdot a}}\]
if 9.075353573798497e-157 < b
Initial program 48.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification48.9
\[\leadsto \frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{2 \cdot a}\]
- Using strategy
rm Applied div-sub49.4
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} - \frac{b}{2 \cdot a}}\]
Taylor expanded around inf 13.3
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified13.3
\[\leadsto \color{blue}{\frac{-c}{b}}\]
- Recombined 3 regimes into one program.
Final simplification10.9
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -7.831748553927705 \cdot 10^{+153}:\\
\;\;\;\;\left(\frac{c}{b} - \frac{b}{a} \cdot \frac{1}{2}\right) - \frac{b}{2 \cdot a}\\
\mathbf{elif}\;b \le 9.075353573798497 \cdot 10^{-157}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)}}{2 \cdot a} - \frac{b}{2 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}\]