- Split input into 4 regimes
if (/ (/ -2 2) b) < -2.440086329964832e+37
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 -2.440086329964832e+37 < (/ (/ -2 2) b) < 3.8986040333535867e-308
Initial program 54.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Applied simplify54.1
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}}\]
Taylor expanded around inf 45.8
\[\leadsto \frac{\color{blue}{\left(b - 2 \cdot \frac{a \cdot c}{b}\right)} - b}{2 \cdot a}\]
Applied simplify7.3
\[\leadsto \color{blue}{\frac{-c}{\frac{b}{1}}}\]
if 3.8986040333535867e-308 < (/ (/ -2 2) b) < 8.452963334145935e-93
Initial program 43.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Applied simplify43.3
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}}\]
Taylor expanded around -inf 3.3
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Applied simplify3.3
\[\leadsto \color{blue}{\frac{-b}{a}}\]
if 8.452963334145935e-93 < (/ (/ -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.9
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;\frac{\frac{-2}{2}}{b} \le -2.440086329964832 \cdot 10^{+37}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}{2 \cdot a}\\
\mathbf{if}\;\frac{\frac{-2}{2}}{b} \le 3.8986040333535867 \cdot 10^{-308}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{if}\;\frac{\frac{-2}{2}}{b} \le 8.452963334145935 \cdot 10^{-93}:\\
\;\;\;\;-\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}}\]