- Split input into 3 regimes
if b < -3.5692996466264766e+148
Initial program 58.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied associate-/r*58.3
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2}}{a}}\]
Taylor expanded around -inf 2.4
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Simplified2.4
\[\leadsto \color{blue}{\frac{-b}{a}}\]
if -3.5692996466264766e+148 < b < 1.01261065157807e-130
Initial program 10.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied associate-/r*10.7
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2}}{a}}\]
if 1.01261065157807e-130 < b
Initial program 50.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied associate-/r*50.4
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2}}{a}}\]
- Using strategy
rm Applied clear-num50.4
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2}}}}\]
Taylor expanded around 0 12.5
\[\leadsto \frac{1}{\color{blue}{-1 \cdot \frac{b}{c}}}\]
Simplified12.5
\[\leadsto \frac{1}{\color{blue}{\frac{-b}{c}}}\]
- Recombined 3 regimes into one program.
Final simplification10.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -3.5692996466264766 \cdot 10^{+148}:\\
\;\;\;\;-\frac{b}{a}\\
\mathbf{elif}\;b \le 1.01261065157807 \cdot 10^{-130}:\\
\;\;\;\;\frac{\frac{\sqrt{b \cdot b - \left(a \cdot 4\right) \cdot c} + \left(-b\right)}{2}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{-\frac{b}{c}}\\
\end{array}\]