- Split input into 4 regimes
if b < -9.221915569974277e+152
Initial program 60.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Simplified60.4
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}}\]
Taylor expanded around -inf 60.4
\[\leadsto \frac{\sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}} - b}{2 \cdot a}\]
Simplified60.4
\[\leadsto \frac{\sqrt{\color{blue}{b \cdot b - a \cdot \left(4 \cdot c\right)}} - b}{2 \cdot a}\]
Taylor expanded around -inf 2.5
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
if -9.221915569974277e+152 < b < -1.409465968557148e-275
Initial program 8.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Simplified8.4
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}}\]
Taylor expanded around -inf 8.4
\[\leadsto \frac{\sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}} - b}{2 \cdot a}\]
Simplified8.4
\[\leadsto \frac{\sqrt{\color{blue}{b \cdot b - a \cdot \left(4 \cdot c\right)}} - b}{2 \cdot a}\]
if -1.409465968557148e-275 < b < 3.738519642861093e+72
Initial program 30.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Simplified30.9
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}}\]
Taylor expanded around -inf 30.9
\[\leadsto \frac{\sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}} - b}{2 \cdot a}\]
Simplified30.8
\[\leadsto \frac{\sqrt{\color{blue}{b \cdot b - a \cdot \left(4 \cdot c\right)}} - b}{2 \cdot a}\]
- Using strategy
rm Applied div-inv30.9
\[\leadsto \color{blue}{\left(\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} - b\right) \cdot \frac{1}{2 \cdot a}}\]
- Using strategy
rm Applied flip--31.0
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} \cdot \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} - b \cdot b}{\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} + b}} \cdot \frac{1}{2 \cdot a}\]
Applied associate-*l/31.0
\[\leadsto \color{blue}{\frac{\left(\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} \cdot \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} - b \cdot b\right) \cdot \frac{1}{2 \cdot a}}{\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} + b}}\]
Simplified16.2
\[\leadsto \frac{\color{blue}{\frac{\frac{0 - a \cdot \left(4 \cdot c\right)}{a}}{2}}}{\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} + b}\]
Taylor expanded around -inf 9.7
\[\leadsto \frac{\frac{\color{blue}{-4 \cdot c}}{2}}{\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} + b}\]
if 3.738519642861093e+72 < b
Initial program 57.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Simplified57.3
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}}\]
Taylor expanded around -inf 57.3
\[\leadsto \frac{\sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}} - b}{2 \cdot a}\]
Simplified57.3
\[\leadsto \frac{\sqrt{\color{blue}{b \cdot b - a \cdot \left(4 \cdot c\right)}} - b}{2 \cdot a}\]
- Using strategy
rm Applied div-inv57.3
\[\leadsto \color{blue}{\left(\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} - b\right) \cdot \frac{1}{2 \cdot a}}\]
Taylor expanded around inf 3.5
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified3.5
\[\leadsto \color{blue}{-\frac{c}{b}}\]
- Recombined 4 regimes into one program.
Final simplification6.9
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -9.221915569974277 \cdot 10^{+152}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{elif}\;b \le -1.409465968557148 \cdot 10^{-275}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - \left(c \cdot 4\right) \cdot a} - b}{a \cdot 2}\\
\mathbf{elif}\;b \le 3.738519642861093 \cdot 10^{+72}:\\
\;\;\;\;\frac{\frac{c \cdot -4}{2}}{\sqrt{b \cdot b - \left(c \cdot 4\right) \cdot a} + b}\\
\mathbf{else}:\\
\;\;\;\;\frac{-c}{b}\\
\end{array}\]