- Split input into 4 regimes
if b < -6.0480812527784834e+150
Initial program 59.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification59.1
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
Taylor expanded around 0 59.1
\[\leadsto \frac{\sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}} - b}{2 \cdot a}\]
- Using strategy
rm Applied div-inv59.1
\[\leadsto \color{blue}{\left(\sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)} - b\right) \cdot \frac{1}{2 \cdot a}}\]
Taylor expanded around -inf 2.4
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
if -6.0480812527784834e+150 < b < -3.719799124860053e-308
Initial program 8.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification8.9
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
Taylor expanded around 0 8.9
\[\leadsto \frac{\sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}} - b}{2 \cdot a}\]
if -3.719799124860053e-308 < b < 1.0692676985676485e+82
Initial program 31.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification30.9
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
Taylor expanded around 0 30.9
\[\leadsto \frac{\sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}} - b}{2 \cdot a}\]
- Using strategy
rm Applied div-inv31.0
\[\leadsto \color{blue}{\left(\sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)} - b\right) \cdot \frac{1}{2 \cdot a}}\]
- Using strategy
rm Applied flip--31.1
\[\leadsto \color{blue}{\frac{\sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)} \cdot \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)} - b \cdot b}{\sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)} + b}} \cdot \frac{1}{2 \cdot a}\]
Applied associate-*l/31.1
\[\leadsto \color{blue}{\frac{\left(\sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)} \cdot \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)} - b \cdot b\right) \cdot \frac{1}{2 \cdot a}}{\sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)} + b}}\]
Simplified15.3
\[\leadsto \frac{\color{blue}{\frac{0 + c \cdot \left(-4 \cdot a\right)}{\frac{a}{\frac{1}{2}}}}}{\sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)} + b}\]
Taylor expanded around -inf 8.8
\[\leadsto \frac{\color{blue}{-2 \cdot c}}{\sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)} + b}\]
if 1.0692676985676485e+82 < b
Initial program 58.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification58.3
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
Taylor expanded around inf 3.0
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified3.0
\[\leadsto \color{blue}{\frac{-c}{b}}\]
- Recombined 4 regimes into one program.
Final simplification6.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -6.0480812527784834 \cdot 10^{+150}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{elif}\;b \le -3.719799124860053 \cdot 10^{-308}:\\
\;\;\;\;\frac{\sqrt{{b}^{2} - \left(c \cdot a\right) \cdot 4} - b}{a \cdot 2}\\
\mathbf{elif}\;b \le 1.0692676985676485 \cdot 10^{+82}:\\
\;\;\;\;\frac{c \cdot -2}{\sqrt{{b}^{2} - \left(c \cdot a\right) \cdot 4} + b}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}\]