- Split input into 3 regimes
if (/ 1 (/ (* 3 a) (exp (log (- (sqrt (fma (* 3 a) (- c) (* b b))) b))))) < -5.1266461288916434e+306 or 7.233719411252099e+307 < (/ 1 (/ (* 3 a) (exp (log (- (sqrt (fma (* 3 a) (- c) (* b b))) b)))))
Initial program 61.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Applied simplify61.7
\[\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--62.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 simplify49.5
\[\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 39.0
\[\leadsto \frac{\frac{\left(c \cdot a\right) \cdot \left(-3\right)}{\color{blue}{b} + b}}{3 \cdot a}\]
Applied simplify31.0
\[\leadsto \color{blue}{\frac{c}{b + b} \cdot \left(-1\right)}\]
if -5.1266461288916434e+306 < (/ 1 (/ (* 3 a) (exp (log (- (sqrt (fma (* 3 a) (- c) (* b b))) b))))) < -8.10967986457994e-231 or 1.2189048961835399e-219 < (/ 1 (/ (* 3 a) (exp (log (- (sqrt (fma (* 3 a) (- c) (* b b))) b))))) < 7.233719411252099e+307
Initial program 2.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Applied simplify2.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 clear-num2.7
\[\leadsto \color{blue}{\frac{1}{\frac{3 \cdot a}{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}}}\]
if -8.10967986457994e-231 < (/ 1 (/ (* 3 a) (exp (log (- (sqrt (fma (* 3 a) (- c) (* b b))) b))))) < 1.2189048961835399e-219
Initial program 50.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Applied simplify50.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--50.8
\[\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 simplify15.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}\]
- Using strategy
rm Applied distribute-rgt-neg-out15.4
\[\leadsto \frac{\frac{\color{blue}{-\left(c \cdot a\right) \cdot 3}}{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b}}{3 \cdot a}\]
Applied distribute-frac-neg15.4
\[\leadsto \frac{\color{blue}{-\frac{\left(c \cdot a\right) \cdot 3}{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b}}}{3 \cdot a}\]
Applied distribute-frac-neg15.4
\[\leadsto \color{blue}{-\frac{\frac{\left(c \cdot a\right) \cdot 3}{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b}}{3 \cdot a}}\]
Applied simplify0.5
\[\leadsto -\color{blue}{\frac{1 \cdot c}{\sqrt{(\left(3 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b}}\]
- Recombined 3 regimes into one program.
Applied simplify12.5
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;\frac{1}{\frac{a \cdot 3}{e^{\log \left(\sqrt{(\left(a \cdot 3\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b\right)}}} \le -5.1266461288916434 \cdot 10^{+306}:\\
\;\;\;\;\frac{-c}{b + b}\\
\mathbf{if}\;\frac{1}{\frac{a \cdot 3}{e^{\log \left(\sqrt{(\left(a \cdot 3\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b\right)}}} \le -8.10967986457994 \cdot 10^{-231}:\\
\;\;\;\;\frac{1}{\frac{a \cdot 3}{\sqrt{(\left(a \cdot 3\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}}\\
\mathbf{if}\;\frac{1}{\frac{a \cdot 3}{e^{\log \left(\sqrt{(\left(a \cdot 3\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b\right)}}} \le 1.2189048961835399 \cdot 10^{-219}:\\
\;\;\;\;\frac{-c}{\sqrt{(\left(a \cdot 3\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} + b}\\
\mathbf{if}\;\frac{1}{\frac{a \cdot 3}{e^{\log \left(\sqrt{(\left(a \cdot 3\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b\right)}}} \le 7.233719411252099 \cdot 10^{+307}:\\
\;\;\;\;\frac{1}{\frac{a \cdot 3}{\sqrt{(\left(a \cdot 3\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}}\\
\mathbf{else}:\\
\;\;\;\;\frac{-c}{b + b}\\
\end{array}}\]