- Split input into 3 regimes
if b < -6.513446677820839e-78
Initial program 52.6
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Simplified52.6
\[\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-inv52.6
\[\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 8.6
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified8.6
\[\leadsto \color{blue}{-\frac{c}{b}}\]
if -6.513446677820839e-78 < b < 7.145891006680855e-06
Initial program 14.8
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Simplified14.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 div-inv14.9
\[\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}}\]
if 7.145891006680855e-06 < b
Initial program 30.9
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Simplified30.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 div-inv31.0
\[\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 7.4
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
- Recombined 3 regimes into one program.
Final simplification10.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -6.513446677820839 \cdot 10^{-78}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{elif}\;b \le 7.145891006680855 \cdot 10^{-06}:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{(\left(c \cdot a\right) \cdot -4 + \left(b \cdot b\right))_*}}{2} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\end{array}\]