- Split input into 3 regimes
if b < -8.391478813092284
Initial program 55.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification55.0
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv55.0
\[\leadsto \color{blue}{\left(\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}\]
Taylor expanded around -inf 5.7
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified5.7
\[\leadsto \color{blue}{\frac{-c}{b}}\]
if -8.391478813092284 < b < 4.2554586162183576e+103
Initial program 16.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification16.5
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv16.6
\[\leadsto \color{blue}{\left(\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}\]
- Using strategy
rm Applied pow116.6
\[\leadsto \left(\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}\right) \cdot \color{blue}{{\left(\frac{1}{2 \cdot a}\right)}^{1}}\]
Applied pow116.6
\[\leadsto \color{blue}{{\left(\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}\right)}^{1}} \cdot {\left(\frac{1}{2 \cdot a}\right)}^{1}\]
Applied pow-prod-down16.6
\[\leadsto \color{blue}{{\left(\left(\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}\right)}^{1}}\]
Simplified16.6
\[\leadsto {\color{blue}{\left(\frac{\left(-b\right) - \sqrt{\left(-4 \cdot c\right) \cdot a + b \cdot b}}{\frac{a}{\frac{1}{2}}}\right)}}^{1}\]
- Using strategy
rm Applied div-sub16.6
\[\leadsto {\color{blue}{\left(\frac{-b}{\frac{a}{\frac{1}{2}}} - \frac{\sqrt{\left(-4 \cdot c\right) \cdot a + b \cdot b}}{\frac{a}{\frac{1}{2}}}\right)}}^{1}\]
Simplified16.6
\[\leadsto {\left(\color{blue}{\frac{-1}{2} \cdot \frac{b}{a}} - \frac{\sqrt{\left(-4 \cdot c\right) \cdot a + b \cdot b}}{\frac{a}{\frac{1}{2}}}\right)}^{1}\]
if 4.2554586162183576e+103 < b
Initial program 45.6
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification45.6
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv45.7
\[\leadsto \color{blue}{\left(\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}\]
Taylor expanded around inf 3.3
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
- Recombined 3 regimes into one program.
Final simplification10.9
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -8.391478813092284:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{elif}\;b \le 4.2554586162183576 \cdot 10^{+103}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{b}{a} - \frac{\sqrt{a \cdot \left(-4 \cdot c\right) + b \cdot b}}{\frac{a}{\frac{1}{2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\end{array}\]