- Split input into 3 regimes
if (/ (* (/ (* c a) 1) (/ (- 3) (+ (sqrt (fma (* 3 a) (- c) (* b b))) b))) (* 3 a)) < -4.0989970764523513e+155 or 3.719520127329433e+225 < (/ (* (/ (* c a) 1) (/ (- 3) (+ (sqrt (fma (* 3 a) (- c) (* b b))) b))) (* 3 a))
Initial program 23.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Applied simplify23.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*23.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 -4.0989970764523513e+155 < (/ (* (/ (* c a) 1) (/ (- 3) (+ (sqrt (fma (* 3 a) (- c) (* b b))) b))) (* 3 a)) < -1.9684654483002747e-225 or 0.0 < (/ (* (/ (* c a) 1) (/ (- 3) (+ (sqrt (fma (* 3 a) (- c) (* b b))) b))) (* 3 a)) < 3.719520127329433e+225
Initial program 18.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Applied simplify18.6
\[\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--19.2
\[\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 simplify1.7
\[\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}\]
- Using strategy
rm Applied *-un-lft-identity1.7
\[\leadsto \frac{\frac{\left(c \cdot a\right) \cdot \left(-3\right)}{\color{blue}{1 \cdot \left(\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b\right)}}}{3 \cdot a}\]
Applied times-frac1.7
\[\leadsto \frac{\color{blue}{\frac{c \cdot a}{1} \cdot \frac{-3}{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b}}}{3 \cdot a}\]
if -1.9684654483002747e-225 < (/ (* (/ (* c a) 1) (/ (- 3) (+ (sqrt (fma (* 3 a) (- c) (* b b))) b))) (* 3 a)) < 0.0
Initial program 56.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Applied simplify56.5
\[\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--57.3
\[\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 simplify43.4
\[\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 32.3
\[\leadsto \frac{\frac{\left(c \cdot a\right) \cdot \left(-3\right)}{\color{blue}{b} + b}}{3 \cdot a}\]
Applied simplify20.8
\[\leadsto \color{blue}{\frac{c}{b + b} \cdot \left(-1\right)}\]
- Recombined 3 regimes into one program.
Applied simplify14.8
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;\frac{\frac{-3}{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b} \cdot \frac{a \cdot c}{1}}{3 \cdot a} \le -4.0989970764523513 \cdot 10^{+155}:\\
\;\;\;\;\frac{\frac{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}{3}}{a}\\
\mathbf{if}\;\frac{\frac{-3}{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b} \cdot \frac{a \cdot c}{1}}{3 \cdot a} \le -1.9684654483002747 \cdot 10^{-225}:\\
\;\;\;\;\frac{\frac{-3}{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b} \cdot \frac{a \cdot c}{1}}{3 \cdot a}\\
\mathbf{if}\;\frac{\frac{-3}{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b} \cdot \frac{a \cdot c}{1}}{3 \cdot a} \le 0.0:\\
\;\;\;\;\frac{-c}{b + b}\\
\mathbf{if}\;\frac{\frac{-3}{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b} \cdot \frac{a \cdot c}{1}}{3 \cdot a} \le 3.719520127329433 \cdot 10^{+225}:\\
\;\;\;\;\frac{\frac{-3}{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b} \cdot \frac{a \cdot c}{1}}{3 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}{3}}{a}\\
\end{array}}\]