- Split input into 4 regimes
if b < -1.1058513712164536e+149
Initial program 62.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 38.5
\[\leadsto \frac{\left(-b\right) - \color{blue}{\left(2 \cdot \frac{a \cdot c}{b} - b\right)}}{2 \cdot a}\]
Applied simplify1.5
\[\leadsto \color{blue}{\frac{-c}{\frac{b}{1}}}\]
if -1.1058513712164536e+149 < b < -5.496700305081621e-102
Initial program 42.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip--42.0
\[\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 simplify13.7
\[\leadsto \frac{\frac{\color{blue}{\left(c \cdot 4\right) \cdot a}}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
Applied simplify13.7
\[\leadsto \frac{\frac{\left(c \cdot 4\right) \cdot a}{\color{blue}{\sqrt{(\left(a \cdot c\right) \cdot \left(-4\right) + \left(b \cdot b\right))_*} - b}}}{2 \cdot a}\]
if -5.496700305081621e-102 < b < 6.959770719239994e+151
Initial program 11.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied clear-num11.6
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}\]
if 6.959770719239994e+151 < b
Initial program 59.6
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 10.6
\[\leadsto \frac{\color{blue}{2 \cdot \frac{a \cdot c}{b} - 2 \cdot b}}{2 \cdot a}\]
Applied simplify2.3
\[\leadsto \color{blue}{\frac{\frac{c}{1}}{b} - \frac{b}{a}}\]
- Recombined 4 regimes into one program.
Applied simplify9.3
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -1.1058513712164536 \cdot 10^{+149}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{if}\;b \le -5.496700305081621 \cdot 10^{-102}:\\
\;\;\;\;\frac{\frac{\left(4 \cdot c\right) \cdot a}{\sqrt{(\left(a \cdot c\right) \cdot \left(-4\right) + \left(b \cdot b\right))_*} - b}}{a \cdot 2}\\
\mathbf{if}\;b \le 6.959770719239994 \cdot 10^{+151}:\\
\;\;\;\;\frac{1}{\frac{a \cdot 2}{\left(-b\right) - \sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\end{array}}\]