- Split input into 3 regimes
if c < 247294268766.76083
Initial program 45.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Simplified45.1
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}{3 \cdot a}}\]
Taylor expanded around inf 11.1
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b}}\]
if 247294268766.76083 < c < 8493198922459.606
Initial program 34.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Simplified34.1
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}{3 \cdot a}}\]
- Using strategy
rm Applied add-cube-cbrt34.1
\[\leadsto \frac{\color{blue}{\left(\sqrt[3]{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b} \cdot \sqrt[3]{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}\right) \cdot \sqrt[3]{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}}}{3 \cdot a}\]
if 8493198922459.606 < c
Initial program 31.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Simplified31.5
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}{3 \cdot a}}\]
Taylor expanded around inf 21.1
\[\leadsto \frac{\color{blue}{\frac{-3}{2} \cdot \frac{a \cdot c}{b}}}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*21.0
\[\leadsto \color{blue}{\frac{\frac{\frac{-3}{2} \cdot \frac{a \cdot c}{b}}{3}}{a}}\]
- Using strategy
rm Applied add-cbrt-cube21.1
\[\leadsto \color{blue}{\sqrt[3]{\left(\frac{\frac{\frac{-3}{2} \cdot \frac{a \cdot c}{b}}{3}}{a} \cdot \frac{\frac{\frac{-3}{2} \cdot \frac{a \cdot c}{b}}{3}}{a}\right) \cdot \frac{\frac{\frac{-3}{2} \cdot \frac{a \cdot c}{b}}{3}}{a}}}\]
- Recombined 3 regimes into one program.
Final simplification12.3
\[\leadsto \begin{array}{l}
\mathbf{if}\;c \le 247294268766.76083:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b}\\
\mathbf{elif}\;c \le 8493198922459.606:\\
\;\;\;\;\frac{\left(\sqrt[3]{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b} \cdot \sqrt[3]{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}\right) \cdot \sqrt[3]{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}}{3 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\sqrt[3]{\left(\frac{\frac{\frac{a \cdot c}{b} \cdot \frac{-3}{2}}{3}}{a} \cdot \frac{\frac{\frac{a \cdot c}{b} \cdot \frac{-3}{2}}{3}}{a}\right) \cdot \frac{\frac{\frac{a \cdot c}{b} \cdot \frac{-3}{2}}{3}}{a}}\\
\end{array}\]