- Split input into 4 regimes
if b < -4.2567282859130756e+107
Initial program 58.9
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 13.6
\[\leadsto \frac{\color{blue}{-2 \cdot \frac{c \cdot a}{b}}}{2 \cdot a}\]
Applied simplify2.5
\[\leadsto \color{blue}{\frac{c}{b} \cdot \frac{-2}{2}}\]
if -4.2567282859130756e+107 < b < -1.7660590781287138e-244
Initial program 35.4
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip--35.5
\[\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 simplify16.6
\[\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}\]
- Using strategy
rm Applied *-un-lft-identity16.6
\[\leadsto \frac{\color{blue}{1 \cdot \frac{\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 times-frac16.6
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{\frac{\left(c \cdot a\right) \cdot 4}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{a}}\]
Applied simplify8.5
\[\leadsto \frac{1}{2} \cdot \color{blue}{\frac{4 \cdot c}{\left(-b\right) + \sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4}}}\]
- Using strategy
rm Applied frac-2neg8.5
\[\leadsto \frac{1}{2} \cdot \color{blue}{\frac{-4 \cdot c}{-\left(\left(-b\right) + \sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4}\right)}}\]
Applied simplify8.5
\[\leadsto \frac{1}{2} \cdot \frac{-4 \cdot c}{\color{blue}{\left(-\sqrt{b \cdot b - \left(c \cdot 4\right) \cdot a}\right) + b}}\]
if -1.7660590781287138e-244 < b < 5.875811807541756e+56
Initial program 10.4
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied clear-num10.5
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}\]
if 5.875811807541756e+56 < b
Initial program 35.9
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 10.3
\[\leadsto \frac{\color{blue}{2 \cdot \frac{c \cdot a}{b} - 2 \cdot b}}{2 \cdot a}\]
Applied simplify6.0
\[\leadsto \color{blue}{\frac{\frac{c}{b}}{1} - \frac{b}{a}}\]
- Recombined 4 regimes into one program.
- Removed slow
pow expressions. Applied simplify7.2
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -4.2567282859130756 \cdot 10^{+107}:\\
\;\;\;\;\frac{\frac{c}{b}}{\frac{2}{-2}}\\
\mathbf{if}\;b \le -1.7660590781287138 \cdot 10^{-244}:\\
\;\;\;\;\frac{\frac{-c}{\frac{2}{4}}}{b + \left(-\sqrt{b \cdot b - a \cdot \left(c \cdot 4\right)}\right)}\\
\mathbf{if}\;b \le 5.875811807541756 \cdot 10^{+56}:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{b \cdot b - a \cdot \left(c \cdot 4\right)}}{a + a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\end{array}}\]