- Split input into 4 regimes
if b < -1.1144995683522713e+98
Initial program 58.4
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification58.4
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-sub59.0
\[\leadsto \color{blue}{\frac{-b}{2 \cdot a} - \frac{\sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}}\]
Taylor expanded around -inf 2.5
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified2.5
\[\leadsto \color{blue}{\frac{-c}{b}}\]
if -1.1144995683522713e+98 < b < -5.616795426913432e-102
Initial program 40.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification40.5
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip--40.6
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)} \cdot \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{\left(-b\right) + \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}}}{2 \cdot a}\]
Applied associate-/l/43.6
\[\leadsto \color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)} \cdot \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{\left(2 \cdot a\right) \cdot \left(\left(-b\right) + \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}\right)}}\]
Simplified16.7
\[\leadsto \frac{\color{blue}{4 \cdot \left(a \cdot c\right)}}{\left(2 \cdot a\right) \cdot \left(\left(-b\right) + \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}\right)}\]
- Using strategy
rm Applied associate-/r*12.4
\[\leadsto \color{blue}{\frac{\frac{4 \cdot \left(a \cdot c\right)}{2 \cdot a}}{\left(-b\right) + \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}}\]
Simplified12.4
\[\leadsto \frac{\frac{4 \cdot \left(a \cdot c\right)}{2 \cdot a}}{\color{blue}{\sqrt{a \cdot \left(-4 \cdot c\right) + b \cdot b} - b}}\]
- Using strategy
rm Applied add-sqr-sqrt12.4
\[\leadsto \frac{\frac{4 \cdot \left(a \cdot c\right)}{2 \cdot a}}{\sqrt{\color{blue}{\sqrt{a \cdot \left(-4 \cdot c\right) + b \cdot b} \cdot \sqrt{a \cdot \left(-4 \cdot c\right) + b \cdot b}}} - b}\]
Applied sqrt-prod12.6
\[\leadsto \frac{\frac{4 \cdot \left(a \cdot c\right)}{2 \cdot a}}{\color{blue}{\sqrt{\sqrt{a \cdot \left(-4 \cdot c\right) + b \cdot b}} \cdot \sqrt{\sqrt{a \cdot \left(-4 \cdot c\right) + b \cdot b}}} - b}\]
if -5.616795426913432e-102 < b < 6.008237338849469e+153
Initial program 11.4
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification11.4
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-sub11.4
\[\leadsto \color{blue}{\frac{-b}{2 \cdot a} - \frac{\sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}}\]
if 6.008237338849469e+153 < b
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{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-sub60.8
\[\leadsto \color{blue}{\frac{-b}{2 \cdot a} - \frac{\sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}}\]
Taylor expanded around inf 2.2
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
- Recombined 4 regimes into one program.
Final simplification8.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.1144995683522713 \cdot 10^{+98}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{elif}\;b \le -5.616795426913432 \cdot 10^{-102}:\\
\;\;\;\;\frac{\frac{4 \cdot \left(c \cdot a\right)}{a \cdot 2}}{\sqrt{\sqrt{a \cdot \left(-4 \cdot c\right) + b \cdot b}} \cdot \sqrt{\sqrt{a \cdot \left(-4 \cdot c\right) + b \cdot b}} - b}\\
\mathbf{elif}\;b \le 6.008237338849469 \cdot 10^{+153}:\\
\;\;\;\;\frac{-b}{a \cdot 2} - \frac{\sqrt{b \cdot b + \left(c \cdot a\right) \cdot -4}}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\end{array}\]