- Split input into 3 regimes
if b < -3.5190623530971513e-242
Initial program 21.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Applied simplify21.6
\[\leadsto \color{blue}{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b}{2 \cdot a}}\]
- Using strategy
rm Applied div-inv21.8
\[\leadsto \color{blue}{\left(\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b\right) \cdot \frac{1}{2 \cdot a}}\]
Applied simplify21.8
\[\leadsto \left(\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b\right) \cdot \color{blue}{\frac{\frac{1}{2}}{a}}\]
if -3.5190623530971513e-242 < b < 5.136864675556751e+72
Initial program 28.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Applied simplify28.9
\[\leadsto \color{blue}{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b}{2 \cdot a}}\]
- Using strategy
rm Applied div-inv28.9
\[\leadsto \color{blue}{\left(\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b\right) \cdot \frac{1}{2 \cdot a}}\]
Applied simplify28.9
\[\leadsto \left(\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b\right) \cdot \color{blue}{\frac{\frac{1}{2}}{a}}\]
- Using strategy
rm Applied flip--29.0
\[\leadsto \color{blue}{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} \cdot \sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b \cdot b}{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} + b}} \cdot \frac{\frac{1}{2}}{a}\]
Applied associate-*l/29.1
\[\leadsto \color{blue}{\frac{\left(\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} \cdot \sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b \cdot b\right) \cdot \frac{\frac{1}{2}}{a}}{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} + b}}\]
Applied simplify16.2
\[\leadsto \frac{\color{blue}{\frac{\frac{1}{2}}{a} \cdot \left(\left(c \cdot a\right) \cdot -4\right)}}{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} + b}\]
- Using strategy
rm Applied pow116.2
\[\leadsto \frac{\frac{\frac{1}{2}}{a} \cdot \color{blue}{{\left(\left(c \cdot a\right) \cdot -4\right)}^{1}}}{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} + b}\]
Applied pow116.2
\[\leadsto \frac{\color{blue}{{\left(\frac{\frac{1}{2}}{a}\right)}^{1}} \cdot {\left(\left(c \cdot a\right) \cdot -4\right)}^{1}}{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} + b}\]
Applied pow-prod-down16.2
\[\leadsto \frac{\color{blue}{{\left(\frac{\frac{1}{2}}{a} \cdot \left(\left(c \cdot a\right) \cdot -4\right)\right)}^{1}}}{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} + b}\]
Applied simplify9.9
\[\leadsto \frac{{\color{blue}{\left(\frac{c}{\frac{-1}{2}}\right)}}^{1}}{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} + b}\]
if 5.136864675556751e+72 < b
Initial program 57.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Applied simplify57.5
\[\leadsto \color{blue}{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b}{2 \cdot a}}\]
- Using strategy
rm Applied div-inv57.5
\[\leadsto \color{blue}{\left(\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b\right) \cdot \frac{1}{2 \cdot a}}\]
Applied simplify57.5
\[\leadsto \left(\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b\right) \cdot \color{blue}{\frac{\frac{1}{2}}{a}}\]
- Using strategy
rm Applied flip--57.6
\[\leadsto \color{blue}{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} \cdot \sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b \cdot b}{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} + b}} \cdot \frac{\frac{1}{2}}{a}\]
Applied associate-*l/57.6
\[\leadsto \color{blue}{\frac{\left(\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} \cdot \sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b \cdot b\right) \cdot \frac{\frac{1}{2}}{a}}{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} + b}}\]
Applied simplify28.3
\[\leadsto \frac{\color{blue}{\frac{\frac{1}{2}}{a} \cdot \left(\left(c \cdot a\right) \cdot -4\right)}}{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} + b}\]
Taylor expanded around 0 7.7
\[\leadsto \frac{\frac{\frac{1}{2}}{a} \cdot \left(\left(c \cdot a\right) \cdot -4\right)}{\color{blue}{b} + b}\]
Applied simplify2.6
\[\leadsto \color{blue}{\frac{-2 \cdot c}{b + b}}\]
- Recombined 3 regimes into one program.
Applied simplify12.9
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -3.5190623530971513 \cdot 10^{-242}:\\
\;\;\;\;\frac{\frac{1}{2}}{a} \cdot \left(\sqrt{(c \cdot \left(a \cdot -4\right) + \left(b \cdot b\right))_*} - b\right)\\
\mathbf{if}\;b \le 5.136864675556751 \cdot 10^{+72}:\\
\;\;\;\;\frac{\frac{c}{\frac{-1}{2}}}{\sqrt{(c \cdot \left(a \cdot -4\right) + \left(b \cdot b\right))_*} + b}\\
\mathbf{else}:\\
\;\;\;\;\frac{-2 \cdot c}{b + b}\\
\end{array}}\]