- Split input into 3 regimes
if (* (- (sqrt (fma (* 3 a) (- c) (* b b))) b) (/ 1 (* 3 a))) < -inf.0 or -1.5982339424674708e-255 < (* (- (sqrt (fma (* 3 a) (- c) (* b b))) b) (/ 1 (* 3 a))) < 2.855099414002002e-254 or 3.4191119758542845e+293 < (* (- (sqrt (fma (* 3 a) (- c) (* b b))) b) (/ 1 (* 3 a)))
Initial program 58.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Applied simplify58.4
\[\leadsto \color{blue}{\frac{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}{3 \cdot a}}\]
- Using strategy
rm Applied flip--59.1
\[\leadsto \frac{\color{blue}{\frac{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} \cdot \sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b \cdot b}{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b}}}{3 \cdot a}\]
Applied simplify38.1
\[\leadsto \frac{\frac{\color{blue}{\left(c \cdot a\right) \cdot \left(-3\right)}}{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b}}{3 \cdot a}\]
Taylor expanded around 0 31.2
\[\leadsto \frac{\frac{\left(c \cdot a\right) \cdot \left(-3\right)}{\color{blue}{b} + b}}{3 \cdot a}\]
Applied simplify22.6
\[\leadsto \color{blue}{\frac{c}{b + b} \cdot \left(-1\right)}\]
if -inf.0 < (* (- (sqrt (fma (* 3 a) (- c) (* b b))) b) (/ 1 (* 3 a))) < -1.5982339424674708e-255
Initial program 4.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Applied simplify4.0
\[\leadsto \color{blue}{\frac{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}{3 \cdot a}}\]
- Using strategy
rm Applied associate-/r*4.0
\[\leadsto \color{blue}{\frac{\frac{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}{3}}{a}}\]
if 2.855099414002002e-254 < (* (- (sqrt (fma (* 3 a) (- c) (* b b))) b) (/ 1 (* 3 a))) < 3.4191119758542845e+293
Initial program 4.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Applied simplify4.1
\[\leadsto \color{blue}{\frac{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}{3 \cdot a}}\]
- Using strategy
rm Applied div-inv4.1
\[\leadsto \color{blue}{\left(\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b\right) \cdot \frac{1}{3 \cdot a}}\]
- Recombined 3 regimes into one program.
Applied simplify14.1
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;\frac{1}{a \cdot 3} \cdot \left(\sqrt{(\left(a \cdot 3\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b\right) = -\infty:\\
\;\;\;\;\frac{-c}{b + b}\\
\mathbf{if}\;\frac{1}{a \cdot 3} \cdot \left(\sqrt{(\left(a \cdot 3\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b\right) \le -1.5982339424674708 \cdot 10^{-255}:\\
\;\;\;\;\frac{\frac{\sqrt{(\left(a \cdot 3\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}{3}}{a}\\
\mathbf{if}\;\frac{1}{a \cdot 3} \cdot \left(\sqrt{(\left(a \cdot 3\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b\right) \le 2.855099414002002 \cdot 10^{-254}:\\
\;\;\;\;\frac{-c}{b + b}\\
\mathbf{if}\;\frac{1}{a \cdot 3} \cdot \left(\sqrt{(\left(a \cdot 3\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b\right) \le 3.4191119758542845 \cdot 10^{+293}:\\
\;\;\;\;\frac{1}{a \cdot 3} \cdot \left(\sqrt{(\left(a \cdot 3\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{-c}{b + b}\\
\end{array}}\]