- Split input into 4 regimes
if b < -1.6178610581073803e+105
Initial program 45.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 10.3
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(\frac{3}{2} \cdot \frac{a \cdot c}{b} - b\right)}}{3 \cdot a}\]
if -1.6178610581073803e+105 < b < 1.1900509959959253e-128
Initial program 11.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Initial simplification11.7
\[\leadsto \frac{\sqrt{-3 \cdot \left(c \cdot a\right) + b \cdot b} - b}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*11.6
\[\leadsto \color{blue}{\frac{\frac{\sqrt{-3 \cdot \left(c \cdot a\right) + b \cdot b} - b}{3}}{a}}\]
if 1.1900509959959253e-128 < b < 1.4596095085343713e+125
Initial program 41.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Initial simplification41.9
\[\leadsto \frac{\sqrt{-3 \cdot \left(c \cdot a\right) + b \cdot b} - b}{3 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity41.9
\[\leadsto \frac{\color{blue}{1 \cdot \left(\sqrt{-3 \cdot \left(c \cdot a\right) + b \cdot b} - b\right)}}{3 \cdot a}\]
Applied times-frac41.9
\[\leadsto \color{blue}{\frac{1}{3} \cdot \frac{\sqrt{-3 \cdot \left(c \cdot a\right) + b \cdot b} - b}{a}}\]
Simplified41.9
\[\leadsto \color{blue}{\frac{1}{3}} \cdot \frac{\sqrt{-3 \cdot \left(c \cdot a\right) + b \cdot b} - b}{a}\]
- Using strategy
rm Applied flip--42.0
\[\leadsto \frac{1}{3} \cdot \frac{\color{blue}{\frac{\sqrt{-3 \cdot \left(c \cdot a\right) + b \cdot b} \cdot \sqrt{-3 \cdot \left(c \cdot a\right) + b \cdot b} - b \cdot b}{\sqrt{-3 \cdot \left(c \cdot a\right) + b \cdot b} + b}}}{a}\]
Applied associate-/l/45.1
\[\leadsto \frac{1}{3} \cdot \color{blue}{\frac{\sqrt{-3 \cdot \left(c \cdot a\right) + b \cdot b} \cdot \sqrt{-3 \cdot \left(c \cdot a\right) + b \cdot b} - b \cdot b}{a \cdot \left(\sqrt{-3 \cdot \left(c \cdot a\right) + b \cdot b} + b\right)}}\]
Simplified17.8
\[\leadsto \frac{1}{3} \cdot \frac{\color{blue}{\left(a \cdot c\right) \cdot -3}}{a \cdot \left(\sqrt{-3 \cdot \left(c \cdot a\right) + b \cdot b} + b\right)}\]
if 1.4596095085343713e+125 < b
Initial program 60.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 14.2
\[\leadsto \frac{\color{blue}{\frac{-3}{2} \cdot \frac{a \cdot c}{b}}}{3 \cdot a}\]
- Recombined 4 regimes into one program.
Final simplification13.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.6178610581073803 \cdot 10^{+105}:\\
\;\;\;\;\frac{\left(\frac{3}{2} \cdot \frac{a \cdot c}{b} - b\right) + \left(-b\right)}{3 \cdot a}\\
\mathbf{elif}\;b \le 1.1900509959959253 \cdot 10^{-128}:\\
\;\;\;\;\frac{\frac{\sqrt{b \cdot b + \left(a \cdot c\right) \cdot -3} - b}{3}}{a}\\
\mathbf{elif}\;b \le 1.4596095085343713 \cdot 10^{+125}:\\
\;\;\;\;\frac{1}{3} \cdot \frac{\left(a \cdot c\right) \cdot -3}{a \cdot \left(\sqrt{b \cdot b + \left(a \cdot c\right) \cdot -3} + b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-3}{2} \cdot \frac{a \cdot c}{b}}{3 \cdot a}\\
\end{array}\]