- Split input into 4 regimes
if b < -4.6073003559298436e+89
Initial program 43.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv43.9
\[\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}}\]
Taylor expanded around -inf 9.8
\[\leadsto \color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - 2 \cdot b\right)} \cdot \frac{1}{2 \cdot a}\]
Applied simplify4.3
\[\leadsto \color{blue}{\frac{\frac{c}{\frac{b}{a}}}{a} - \frac{b}{a}}\]
if -4.6073003559298436e+89 < b < -1.7783861994221244e-287
Initial program 8.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv8.8
\[\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 -1.7783861994221244e-287 < b < 4.7334951176876386e+20
Initial program 27.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+27.2
\[\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.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}\]
if 4.7334951176876386e+20 < b
Initial program 55.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 44.3
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}{2 \cdot a}\]
Applied simplify4.7
\[\leadsto \color{blue}{\left(-1\right) \cdot \frac{c}{b}}\]
- Recombined 4 regimes into one program.
Applied simplify8.8
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -4.6073003559298436 \cdot 10^{+89}:\\
\;\;\;\;\frac{\frac{c}{\frac{b}{a}}}{a} - \frac{b}{a}\\
\mathbf{if}\;b \le -1.7783861994221244 \cdot 10^{-287}:\\
\;\;\;\;\frac{1}{a \cdot 2} \cdot \left(\sqrt{b \cdot b - 4 \cdot \left(c \cdot a\right)} + \left(-b\right)\right)\\
\mathbf{if}\;b \le 4.7334951176876386 \cdot 10^{+20}:\\
\;\;\;\;\frac{\frac{4 \cdot \left(c \cdot a\right)}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(c \cdot a\right)}}}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}}\]