- Split input into 3 regimes
if b < -4.5087247841566877e+120
Initial program 49.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 3.4
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b} - \frac{2}{3} \cdot \frac{b}{a}}\]
if -4.5087247841566877e+120 < b < 2.164929437706202e-117
Initial program 11.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied sub-neg11.7
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{b \cdot b + \left(-\left(3 \cdot a\right) \cdot c\right)}}}{3 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity11.7
\[\leadsto \frac{\left(-b\right) + \color{blue}{1 \cdot \sqrt{b \cdot b + \left(-\left(3 \cdot a\right) \cdot c\right)}}}{3 \cdot a}\]
Applied *-un-lft-identity11.7
\[\leadsto \frac{\color{blue}{1 \cdot \left(-b\right)} + 1 \cdot \sqrt{b \cdot b + \left(-\left(3 \cdot a\right) \cdot c\right)}}{3 \cdot a}\]
Applied distribute-lft-out11.7
\[\leadsto \frac{\color{blue}{1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b + \left(-\left(3 \cdot a\right) \cdot c\right)}\right)}}{3 \cdot a}\]
Simplified11.8
\[\leadsto \frac{1 \cdot \color{blue}{\left(\sqrt{\left(c \cdot -3\right) \cdot a + b \cdot b} - b\right)}}{3 \cdot a}\]
- Using strategy
rm Applied times-frac11.7
\[\leadsto \color{blue}{\frac{1}{3} \cdot \frac{\sqrt{\left(c \cdot -3\right) \cdot a + b \cdot b} - b}{a}}\]
Simplified11.7
\[\leadsto \color{blue}{\frac{1}{3}} \cdot \frac{\sqrt{\left(c \cdot -3\right) \cdot a + b \cdot b} - b}{a}\]
if 2.164929437706202e-117 < b
Initial program 51.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 11.1
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b}}\]
- Recombined 3 regimes into one program.
Final simplification10.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -4.5087247841566877 \cdot 10^{+120}:\\
\;\;\;\;\frac{1}{2} \cdot \frac{c}{b} - \frac{b}{a} \cdot \frac{2}{3}\\
\mathbf{elif}\;b \le 2.164929437706202 \cdot 10^{-117}:\\
\;\;\;\;\frac{1}{3} \cdot \frac{\sqrt{a \cdot \left(c \cdot -3\right) + b \cdot b} - b}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b}\\
\end{array}\]