- Split input into 4 regimes
if (- b) < -4.145680582588426e+97
Initial program 44.2
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 10.5
\[\leadsto \frac{\color{blue}{2 \cdot \frac{c \cdot a}{b} - 2 \cdot b}}{2 \cdot a}\]
Applied simplify4.3
\[\leadsto \color{blue}{\frac{c}{b} \cdot 1 - \frac{b}{a}}\]
if -4.145680582588426e+97 < (- b) < 4.068478382870796e-77
Initial program 13.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv13.2
\[\leadsto \color{blue}{\left(\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}\]
if 4.068478382870796e-77 < (- b) < 1.8248139046333156e+68
Initial program 41.3
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip--41.4
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} \cdot \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}{2 \cdot a}\]
Applied simplify15.7
\[\leadsto \frac{\frac{\color{blue}{\left(c \cdot a\right) \cdot 4}}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
Applied simplify15.7
\[\leadsto \frac{\frac{\left(c \cdot a\right) \cdot 4}{\color{blue}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}}{2 \cdot a}\]
- Using strategy
rm Applied add-sqr-sqrt15.9
\[\leadsto \frac{\frac{\left(c \cdot a\right) \cdot 4}{\color{blue}{\sqrt{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b} \cdot \sqrt{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}}}{2 \cdot a}\]
Applied times-frac15.9
\[\leadsto \frac{\color{blue}{\frac{c \cdot a}{\sqrt{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}} \cdot \frac{4}{\sqrt{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}}}{2 \cdot a}\]
Applied times-frac16.9
\[\leadsto \color{blue}{\frac{\frac{c \cdot a}{\sqrt{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}}{2} \cdot \frac{\frac{4}{\sqrt{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}}{a}}\]
if 1.8248139046333156e+68 < (- b)
Initial program 58.3
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip--58.3
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} \cdot \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}{2 \cdot a}\]
Applied simplify30.7
\[\leadsto \frac{\frac{\color{blue}{\left(c \cdot a\right) \cdot 4}}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
Applied simplify30.7
\[\leadsto \frac{\frac{\left(c \cdot a\right) \cdot 4}{\color{blue}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}}{2 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity30.7
\[\leadsto \frac{\frac{\left(c \cdot a\right) \cdot 4}{\color{blue}{1 \cdot \left(\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b\right)}}}{2 \cdot a}\]
Applied times-frac30.7
\[\leadsto \frac{\color{blue}{\frac{c \cdot a}{1} \cdot \frac{4}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}}{2 \cdot a}\]
Applied associate-/l*30.7
\[\leadsto \color{blue}{\frac{\frac{c \cdot a}{1}}{\frac{2 \cdot a}{\frac{4}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}}}\]
Taylor expanded around -inf 15.6
\[\leadsto \frac{\frac{c \cdot a}{1}}{\frac{2 \cdot a}{\frac{4}{\color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)} - b}}}\]
Applied simplify3.9
\[\leadsto \color{blue}{\frac{c \cdot \frac{4}{2}}{\frac{2 \cdot c}{\frac{b}{a}} - \left(b + b\right)}}\]
- Recombined 4 regimes into one program.
Applied simplify9.8
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -4.145680582588426 \cdot 10^{+97}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{if}\;-b \le 4.068478382870796 \cdot 10^{-77}:\\
\;\;\;\;\frac{1}{a \cdot 2} \cdot \left(\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right)\\
\mathbf{if}\;-b \le 1.8248139046333156 \cdot 10^{+68}:\\
\;\;\;\;\frac{\frac{4}{\sqrt{\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} - b}}}{a} \cdot \frac{\frac{a \cdot c}{\sqrt{\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} - b}}}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{4}{2} \cdot c}{\frac{c \cdot 2}{\frac{b}{a}} - \left(b + b\right)}\\
\end{array}}\]