- Split input into 4 regimes
if (/ (/ -2 2) b) < -7.223412898917059e+34
Initial program 22.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Applied simplify22.9
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}}\]
if -7.223412898917059e+34 < (/ (/ -2 2) b) < 6.98549974141376e-310
Initial program 54.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Applied simplify54.2
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}}\]
Taylor expanded around inf 45.7
\[\leadsto \frac{\color{blue}{\left(b - 2 \cdot \frac{a \cdot c}{b}\right)} - b}{2 \cdot a}\]
Applied simplify7.0
\[\leadsto \color{blue}{\frac{-c}{\frac{b}{1}}}\]
if 6.98549974141376e-310 < (/ (/ -2 2) b) < 2.689539947645652e-90
Initial program 42.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Applied simplify42.9
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}}\]
Taylor expanded around -inf 3.5
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Applied simplify3.5
\[\leadsto \color{blue}{\frac{-b}{a}}\]
if 2.689539947645652e-90 < (/ (/ -2 2) b)
Initial program 9.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Applied simplify9.0
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}}\]
- Using strategy
rm Applied add-sqr-sqrt9.3
\[\leadsto \frac{\color{blue}{\sqrt{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b} \cdot \sqrt{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}}}{2 \cdot a}\]
Applied times-frac9.3
\[\leadsto \color{blue}{\frac{\sqrt{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}}{2} \cdot \frac{\sqrt{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}}{a}}\]
- Recombined 4 regimes into one program.
Applied simplify9.8
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;\frac{\frac{-2}{2}}{b} \le -7.223412898917059 \cdot 10^{+34}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}{2 \cdot a}\\
\mathbf{if}\;\frac{\frac{-2}{2}}{b} \le 6.98549974141376 \cdot 10^{-310}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{if}\;\frac{\frac{-2}{2}}{b} \le 2.689539947645652 \cdot 10^{-90}:\\
\;\;\;\;-\frac{b}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}}{a} \cdot \frac{\sqrt{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}}{2}\\
\end{array}}\]