- Split input into 3 regimes
if b < -2.818264606683512e+17
Initial program 32.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 7.2
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Simplified7.2
\[\leadsto \color{blue}{\frac{-b}{a}}\]
if -2.818264606683512e+17 < b < 1.2507329391222916e-46
Initial program 15.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied sub-neg15.5
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{b \cdot b + \left(-\left(4 \cdot a\right) \cdot c\right)}}}{2 \cdot a}\]
if 1.2507329391222916e-46 < b
Initial program 53.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity53.8
\[\leadsto \frac{\color{blue}{1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right)}}{2 \cdot a}\]
Applied associate-/l*53.9
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}}\]
Taylor expanded around 0 8.2
\[\leadsto \frac{1}{\color{blue}{-1 \cdot \frac{b}{c}}}\]
Simplified8.2
\[\leadsto \frac{1}{\color{blue}{\frac{-b}{c}}}\]
- Recombined 3 regimes into one program.
Final simplification10.9
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -2.818264606683512 \cdot 10^{+17}:\\
\;\;\;\;-\frac{b}{a}\\
\mathbf{elif}\;b \le 1.2507329391222916 \cdot 10^{-46}:\\
\;\;\;\;\frac{\sqrt{\left(a \cdot -4\right) \cdot c + b \cdot b} + \left(-b\right)}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{-b}{c}}\\
\end{array}\]