- Split input into 3 regimes
if b < -2.6981693858302217e+153
Initial program 60.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Simplified60.5
\[\leadsto \color{blue}{\frac{\frac{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*} - b}{2}}{a}}\]
Taylor expanded around -inf 1.6
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
if -2.6981693858302217e+153 < b < 9.972464149054613e-68
Initial program 11.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Simplified11.8
\[\leadsto \color{blue}{\frac{\frac{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*} - b}{2}}{a}}\]
- Using strategy
rm Applied add-cube-cbrt12.0
\[\leadsto \frac{\frac{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*} - \color{blue}{\left(\sqrt[3]{b} \cdot \sqrt[3]{b}\right) \cdot \sqrt[3]{b}}}{2}}{a}\]
Applied add-sqr-sqrt12.0
\[\leadsto \frac{\frac{\sqrt{\color{blue}{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*} \cdot \sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*}}} - \left(\sqrt[3]{b} \cdot \sqrt[3]{b}\right) \cdot \sqrt[3]{b}}{2}}{a}\]
Applied sqrt-prod12.2
\[\leadsto \frac{\frac{\color{blue}{\sqrt{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*}} \cdot \sqrt{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*}}} - \left(\sqrt[3]{b} \cdot \sqrt[3]{b}\right) \cdot \sqrt[3]{b}}{2}}{a}\]
Applied prod-diff12.2
\[\leadsto \frac{\frac{\color{blue}{(\left(\sqrt{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*}}\right) \cdot \left(\sqrt{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*}}\right) + \left(-\sqrt[3]{b} \cdot \left(\sqrt[3]{b} \cdot \sqrt[3]{b}\right)\right))_* + (\left(-\sqrt[3]{b}\right) \cdot \left(\sqrt[3]{b} \cdot \sqrt[3]{b}\right) + \left(\sqrt[3]{b} \cdot \left(\sqrt[3]{b} \cdot \sqrt[3]{b}\right)\right))_*}}{2}}{a}\]
Simplified11.8
\[\leadsto \frac{\frac{\color{blue}{\left(\sqrt{(\left(-4 \cdot c\right) \cdot a + \left(b \cdot b\right))_*} + \left(-b\right)\right)} + (\left(-\sqrt[3]{b}\right) \cdot \left(\sqrt[3]{b} \cdot \sqrt[3]{b}\right) + \left(\sqrt[3]{b} \cdot \left(\sqrt[3]{b} \cdot \sqrt[3]{b}\right)\right))_*}{2}}{a}\]
Simplified11.8
\[\leadsto \frac{\frac{\left(\sqrt{(\left(-4 \cdot c\right) \cdot a + \left(b \cdot b\right))_*} + \left(-b\right)\right) + \color{blue}{\left(\left(-b\right) + b\right)}}{2}}{a}\]
if 9.972464149054613e-68 < b
Initial program 52.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Simplified52.8
\[\leadsto \color{blue}{\frac{\frac{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*} - b}{2}}{a}}\]
Taylor expanded around inf 8.7
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified8.7
\[\leadsto \color{blue}{-\frac{c}{b}}\]
- Recombined 3 regimes into one program.
Final simplification9.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -2.6981693858302217 \cdot 10^{+153}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{elif}\;b \le 9.972464149054613 \cdot 10^{-68}:\\
\;\;\;\;\frac{\frac{\left(\left(-b\right) + b\right) + \left(\sqrt{(\left(-4 \cdot c\right) \cdot a + \left(b \cdot b\right))_*} + \left(-b\right)\right)}{2}}{a}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}\]