- Split input into 4 regimes
if (+ (- b) (- b)) < -3.353832252491716e+126
Initial program 60.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied flip-+60.2
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}{3 \cdot a}\]
Applied simplify33.4
\[\leadsto \frac{\frac{\color{blue}{\left(3 \cdot c\right) \cdot a}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{3 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity33.4
\[\leadsto \frac{\frac{\left(3 \cdot c\right) \cdot a}{\color{blue}{1 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}}}{3 \cdot a}\]
Applied times-frac34.2
\[\leadsto \frac{\color{blue}{\frac{3 \cdot c}{1} \cdot \frac{a}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}{3 \cdot a}\]
Applied times-frac33.9
\[\leadsto \color{blue}{\frac{\frac{3 \cdot c}{1}}{3} \cdot \frac{\frac{a}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{a}}\]
Applied simplify33.8
\[\leadsto \color{blue}{c} \cdot \frac{\frac{a}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{a}\]
Applied simplify32.1
\[\leadsto c \cdot \color{blue}{\frac{1}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}\]
- Using strategy
rm Applied add-exp-log32.6
\[\leadsto c \cdot \frac{1}{\left(-b\right) - \color{blue}{e^{\log \left(\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}}}\]
Taylor expanded around inf 5.0
\[\leadsto c \cdot \frac{1}{\color{blue}{-\left(e^{-\log \left(\frac{1}{b}\right)} + b\right)}}\]
Applied simplify1.7
\[\leadsto \color{blue}{\frac{c}{\left(-b\right) + \left(-b\right)}}\]
if -3.353832252491716e+126 < (+ (- b) (- b)) < 5.629476504120747e-306
Initial program 33.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied flip-+34.0
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}{3 \cdot a}\]
Applied simplify16.8
\[\leadsto \frac{\frac{\color{blue}{\left(3 \cdot c\right) \cdot a}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{3 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity16.8
\[\leadsto \frac{\frac{\left(3 \cdot c\right) \cdot a}{\color{blue}{1 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}}}{3 \cdot a}\]
Applied times-frac15.6
\[\leadsto \frac{\color{blue}{\frac{3 \cdot c}{1} \cdot \frac{a}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}{3 \cdot a}\]
Applied times-frac11.1
\[\leadsto \color{blue}{\frac{\frac{3 \cdot c}{1}}{3} \cdot \frac{\frac{a}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{a}}\]
Applied simplify11.1
\[\leadsto \color{blue}{c} \cdot \frac{\frac{a}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{a}\]
Applied simplify8.6
\[\leadsto c \cdot \color{blue}{\frac{1}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}\]
if 5.629476504120747e-306 < (+ (- b) (- b)) < 7.950651731113517e+58
Initial program 9.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*9.8
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3}}{a}}\]
Applied simplify9.8
\[\leadsto \frac{\color{blue}{\frac{\sqrt{b \cdot b - \left(a \cdot 3\right) \cdot c} - b}{3}}}{a}\]
if 7.950651731113517e+58 < (+ (- b) (- b))
Initial program 39.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 10.7
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(\frac{3}{2} \cdot \frac{a \cdot c}{b} - b\right)}}{3 \cdot a}\]
Applied simplify5.5
\[\leadsto \color{blue}{\frac{\frac{\frac{3}{2} \cdot a}{\frac{b}{c}} - \left(b + b\right)}{3 \cdot a}}\]
- Recombined 4 regimes into one program.
Applied simplify6.8
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-\left(b + b\right) \le -3.353832252491716 \cdot 10^{+126}:\\
\;\;\;\;\frac{c}{-\left(b + b\right)}\\
\mathbf{if}\;-\left(b + b\right) \le 5.629476504120747 \cdot 10^{-306}:\\
\;\;\;\;\frac{1}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(3 \cdot a\right)}} \cdot c\\
\mathbf{if}\;-\left(b + b\right) \le 7.950651731113517 \cdot 10^{+58}:\\
\;\;\;\;\frac{\frac{\sqrt{b \cdot b - c \cdot \left(3 \cdot a\right)} - b}{3}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{a \cdot \frac{3}{2}}{\frac{b}{c}} - \left(b + b\right)}{3 \cdot a}\\
\end{array}}\]