- Split input into 3 regimes
if b < -2.4826136748139784e-46
Initial program 53.6
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-sub54.5
\[\leadsto \color{blue}{\frac{-b}{2 \cdot a} - \frac{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}}\]
- Using strategy
rm Applied add-sqr-sqrt54.5
\[\leadsto \frac{-b}{2 \cdot a} - \frac{\sqrt{\color{blue}{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} \cdot \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}{2 \cdot a}\]
Applied sqrt-prod56.1
\[\leadsto \frac{-b}{2 \cdot a} - \frac{\color{blue}{\sqrt{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}} \cdot \sqrt{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}{2 \cdot a}\]
Applied times-frac56.5
\[\leadsto \frac{-b}{2 \cdot a} - \color{blue}{\frac{\sqrt{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{2} \cdot \frac{\sqrt{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{a}}\]
Taylor expanded around -inf 7.5
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified7.5
\[\leadsto \color{blue}{\frac{-c}{b}}\]
if -2.4826136748139784e-46 < b < 1.9950290346988235e+62
Initial program 14.3
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-sub14.3
\[\leadsto \color{blue}{\frac{-b}{2 \cdot a} - \frac{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}}\]
if 1.9950290346988235e+62 < b
Initial program 38.1
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-sub38.1
\[\leadsto \color{blue}{\frac{-b}{2 \cdot a} - \frac{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}}\]
Taylor expanded around inf 5.0
\[\leadsto \frac{-b}{2 \cdot a} - \color{blue}{\left(\frac{1}{2} \cdot \frac{b}{a} - \frac{c}{b}\right)}\]
- Recombined 3 regimes into one program.
Final simplification10.0
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -2.4826136748139784 \cdot 10^{-46}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{elif}\;b \le 1.9950290346988235 \cdot 10^{+62}:\\
\;\;\;\;\frac{-b}{2 \cdot a} - \frac{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}}{2 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{-b}{2 \cdot a} - \left(\frac{1}{2} \cdot \frac{b}{a} - \frac{c}{b}\right)\\
\end{array}\]