- Split input into 3 regimes
if b < -6.109891583059287e-150
Initial program 49.4
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification49.4
\[\leadsto \frac{\left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}{2 \cdot a}\]
Taylor expanded around -inf 13.1
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified13.1
\[\leadsto \color{blue}{\frac{-c}{b}}\]
if -6.109891583059287e-150 < b < 5.8627563764459407e+141
Initial program 10.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification10.5
\[\leadsto \frac{\left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}{2 \cdot a}\]
- Using strategy
rm Applied clear-num10.6
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}}}\]
- Using strategy
rm Applied *-un-lft-identity10.6
\[\leadsto \frac{1}{\frac{2 \cdot a}{\color{blue}{1 \cdot \left(\left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}\right)}}}\]
Applied times-frac10.6
\[\leadsto \frac{1}{\color{blue}{\frac{2}{1} \cdot \frac{a}{\left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}}}\]
Simplified10.6
\[\leadsto \frac{1}{\color{blue}{2} \cdot \frac{a}{\left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}}\]
if 5.8627563764459407e+141 < b
Initial program 56.3
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification56.2
\[\leadsto \frac{\left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}{2 \cdot a}\]
Taylor expanded around inf 2.6
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
- Recombined 3 regimes into one program.
Final simplification10.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -6.109891583059287 \cdot 10^{-150}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{elif}\;b \le 5.8627563764459407 \cdot 10^{+141}:\\
\;\;\;\;\frac{1}{2 \cdot \frac{a}{\left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\end{array}\]