- Split input into 3 regimes
if b < -1.6339360070887115e-105
Initial program 51.2
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification51.2
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv51.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}}\]
Taylor expanded around -inf 10.6
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified10.6
\[\leadsto \color{blue}{\frac{-c}{b}}\]
if -1.6339360070887115e-105 < b < 8.694455854141842e+139
Initial program 12.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification12.0
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv12.1
\[\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}}\]
- Using strategy
rm Applied pow112.1
\[\leadsto \left(\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}\right) \cdot \color{blue}{{\left(\frac{1}{2 \cdot a}\right)}^{1}}\]
Applied pow112.1
\[\leadsto \color{blue}{{\left(\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}\right)}^{1}} \cdot {\left(\frac{1}{2 \cdot a}\right)}^{1}\]
Applied pow-prod-down12.1
\[\leadsto \color{blue}{{\left(\left(\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}\right)}^{1}}\]
Simplified12.0
\[\leadsto {\color{blue}{\left(\frac{\left(-b\right) - \sqrt{\left(-4 \cdot c\right) \cdot a + b \cdot b}}{\frac{a}{\frac{1}{2}}}\right)}}^{1}\]
if 8.694455854141842e+139 < b
Initial program 55.9
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification55.9
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 2.1
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Simplified2.1
\[\leadsto \color{blue}{\frac{-b}{a}}\]
- Recombined 3 regimes into one program.
Final simplification10.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.6339360070887115 \cdot 10^{-105}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{elif}\;b \le 8.694455854141842 \cdot 10^{+139}:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{\left(c \cdot -4\right) \cdot a + b \cdot b}}{\frac{a}{\frac{1}{2}}}\\
\mathbf{else}:\\
\;\;\;\;-\frac{b}{a}\\
\end{array}\]