- Split input into 2 regimes
if b < 2.847412102134267e-31
Initial program 21.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Simplified21.6
\[\leadsto \color{blue}{\frac{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b}{2}}{a}}\]
- Using strategy
rm Applied clear-num21.7
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b}{2}}}}\]
- Using strategy
rm Applied clear-num21.7
\[\leadsto \frac{1}{\color{blue}{\frac{1}{\frac{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b}{2}}{a}}}}\]
- Using strategy
rm Applied remove-double-div21.6
\[\leadsto \color{blue}{\frac{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b}{2}}{a}}\]
if 2.847412102134267e-31 < b
Initial program 55.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Simplified55.0
\[\leadsto \color{blue}{\frac{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b}{2}}{a}}\]
- Using strategy
rm Applied clear-num55.1
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b}{2}}}}\]
Taylor expanded around 0 7.7
\[\leadsto \frac{1}{\color{blue}{-1 \cdot \frac{b}{c}}}\]
Simplified7.7
\[\leadsto \frac{1}{\color{blue}{-\frac{b}{c}}}\]
- Recombined 2 regimes into one program.
Final simplification16.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le 2.847412102134267 \cdot 10^{-31}:\\
\;\;\;\;\frac{\frac{\sqrt{(c \cdot \left(-4 \cdot a\right) + \left(b \cdot b\right))_*} - b}{2}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{-\frac{b}{c}}\\
\end{array}\]