- Split input into 4 regimes
if b < -2.349861988811081e+116
Initial program 59.3
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification59.3
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 59.3
\[\leadsto \frac{\left(-b\right) - \sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
Taylor expanded around -inf 2.0
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified2.0
\[\leadsto \color{blue}{\frac{-c}{b}}\]
if -2.349861988811081e+116 < b < 5.783509935196275e-273
Initial program 31.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification31.0
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 31.0
\[\leadsto \frac{\left(-b\right) - \sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv31.0
\[\leadsto \color{blue}{\left(\left(-b\right) - \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}\]
- Using strategy
rm Applied flip--31.1
\[\leadsto \color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)} \cdot \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}{\left(-b\right) + \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}} \cdot \frac{1}{2 \cdot a}\]
Applied associate-*l/31.2
\[\leadsto \color{blue}{\frac{\left(\left(-b\right) \cdot \left(-b\right) - \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)} \cdot \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}{\left(-b\right) + \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}}\]
Simplified14.5
\[\leadsto \frac{\color{blue}{\left(0 + \left(c \cdot 4\right) \cdot a\right) \cdot \frac{\frac{1}{2}}{a}}}{\left(-b\right) + \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}\]
if 5.783509935196275e-273 < b < 1.4036353374114051e+100
Initial program 8.7
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification8.7
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity8.7
\[\leadsto \frac{\left(-b\right) - \color{blue}{1 \cdot \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
Applied *-un-lft-identity8.7
\[\leadsto \frac{\color{blue}{1 \cdot \left(-b\right)} - 1 \cdot \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied distribute-lft-out--8.7
\[\leadsto \frac{\color{blue}{1 \cdot \left(\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}\right)}}{2 \cdot a}\]
Applied associate-/l*8.9
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}}}\]
if 1.4036353374114051e+100 < b
Initial program 45.7
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification45.7
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 3.4
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
- Recombined 4 regimes into one program.
Final simplification8.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -2.349861988811081 \cdot 10^{+116}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{elif}\;b \le 5.783509935196275 \cdot 10^{-273}:\\
\;\;\;\;\frac{\left(\left(c \cdot 4\right) \cdot a\right) \cdot \frac{\frac{1}{2}}{a}}{\left(-b\right) + \sqrt{{b}^{2} - \left(c \cdot a\right) \cdot 4}}\\
\mathbf{elif}\;b \le 1.4036353374114051 \cdot 10^{+100}:\\
\;\;\;\;\frac{1}{\frac{a \cdot 2}{\left(-b\right) - \sqrt{-4 \cdot \left(c \cdot a\right) + b \cdot b}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\end{array}\]