- Split input into 3 regimes
if b < -5.0478552312406124e-113
Initial program 50.4
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Simplified50.4
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) - \sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*}}{2}}{a}}\]
- Using strategy
rm Applied div-inv50.4
\[\leadsto \color{blue}{\frac{\left(-b\right) - \sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*}}{2} \cdot \frac{1}{a}}\]
Taylor expanded around -inf 10.6
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified10.6
\[\leadsto \color{blue}{-\frac{c}{b}}\]
if -5.0478552312406124e-113 < b < 1.208200170069043e+98
Initial program 11.8
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Simplified11.8
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) - \sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*}}{2}}{a}}\]
- Using strategy
rm Applied clear-num12.0
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\frac{\left(-b\right) - \sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*}}{2}}}}\]
if 1.208200170069043e+98 < b
Initial program 44.9
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Simplified44.9
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) - \sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*}}{2}}{a}}\]
- Using strategy
rm Applied clear-num44.9
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\frac{\left(-b\right) - \sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*}}{2}}}}\]
Taylor expanded around 0 4.3
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Simplified4.3
\[\leadsto \color{blue}{-\frac{b}{a}}\]
- Recombined 3 regimes into one program.
Final simplification10.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -5.0478552312406124 \cdot 10^{-113}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{elif}\;b \le 1.208200170069043 \cdot 10^{+98}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{\left(-b\right) - \sqrt{(\left(c \cdot a\right) \cdot -4 + \left(b \cdot b\right))_*}}{2}}}\\
\mathbf{else}:\\
\;\;\;\;-\frac{b}{a}\\
\end{array}\]