- Split input into 3 regimes
if b < -1.336244498910505e+154
Initial program 60.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification60.9
\[\leadsto \frac{\sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*} - b}{2 \cdot a}\]
Taylor expanded around -inf 52.2
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{b}{a}}\]
if -1.336244498910505e+154 < b < 1.3485817847161475e-49
Initial program 13.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification13.0
\[\leadsto \frac{\sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*} - b}{2 \cdot a}\]
- Using strategy
rm Applied clear-num13.1
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*} - b}}}\]
- Using strategy
rm Applied div-inv13.2
\[\leadsto \frac{1}{\color{blue}{\left(2 \cdot a\right) \cdot \frac{1}{\sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*} - b}}}\]
if 1.3485817847161475e-49 < b
Initial program 53.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification53.7
\[\leadsto \frac{\sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*} - b}{2 \cdot a}\]
- Using strategy
rm Applied clear-num53.7
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*} - b}}}\]
- Using strategy
rm Applied div-inv53.7
\[\leadsto \frac{1}{\color{blue}{\left(2 \cdot a\right) \cdot \frac{1}{\sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*} - b}}}\]
Taylor expanded around 0 8.3
\[\leadsto \frac{1}{\color{blue}{-1 \cdot \frac{b}{c}}}\]
Simplified8.3
\[\leadsto \frac{1}{\color{blue}{\frac{-b}{c}}}\]
- Recombined 3 regimes into one program.
Final simplification15.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.336244498910505 \cdot 10^{+154}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{b}{a}\\
\mathbf{elif}\;b \le 1.3485817847161475 \cdot 10^{-49}:\\
\;\;\;\;\frac{1}{\frac{1}{\sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*} - b} \cdot \left(a \cdot 2\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{-\frac{b}{c}}\\
\end{array}\]