- Split input into 4 regimes
if b < -2.817036323587252e+75
Initial program 39.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied div-inv39.9
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{1}{3 \cdot a}}\]
Taylor expanded around -inf 4.6
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b} - \frac{2}{3} \cdot \frac{b}{a}}\]
Simplified4.6
\[\leadsto \color{blue}{(\frac{-2}{3} \cdot \left(\frac{b}{a}\right) + \left(\frac{c}{\frac{b}{\frac{1}{2}}}\right))_*}\]
if -2.817036323587252e+75 < b < 1.6112526981926432e-298
Initial program 9.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied div-inv9.9
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{1}{3 \cdot a}}\]
if 1.6112526981926432e-298 < b < 9.940268438132398e+42
Initial program 29.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied div-inv29.3
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{1}{3 \cdot a}}\]
- Using strategy
rm Applied flip-+29.4
\[\leadsto \color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}} \cdot \frac{1}{3 \cdot a}\]
Applied associate-*l/29.4
\[\leadsto \color{blue}{\frac{\left(\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{1}{3 \cdot a}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}\]
Simplified17.3
\[\leadsto \frac{\color{blue}{\frac{3 \cdot \left(c \cdot a\right)}{a \cdot 3}}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}\]
- Using strategy
rm Applied *-un-lft-identity17.3
\[\leadsto \frac{\frac{3 \cdot \left(c \cdot a\right)}{a \cdot 3}}{\color{blue}{1 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}}\]
Applied *-un-lft-identity17.3
\[\leadsto \frac{\color{blue}{1 \cdot \frac{3 \cdot \left(c \cdot a\right)}{a \cdot 3}}}{1 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}\]
Applied times-frac17.3
\[\leadsto \color{blue}{\frac{1}{1} \cdot \frac{\frac{3 \cdot \left(c \cdot a\right)}{a \cdot 3}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}\]
Simplified17.3
\[\leadsto \color{blue}{1} \cdot \frac{\frac{3 \cdot \left(c \cdot a\right)}{a \cdot 3}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}\]
Simplified10.0
\[\leadsto 1 \cdot \color{blue}{\frac{c}{\left(-b\right) - \sqrt{(c \cdot \left(a \cdot -3\right) + \left(b \cdot b\right))_*}}}\]
if 9.940268438132398e+42 < b
Initial program 56.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied div-inv56.2
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{1}{3 \cdot a}}\]
- Using strategy
rm Applied flip-+56.2
\[\leadsto \color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}} \cdot \frac{1}{3 \cdot a}\]
Applied associate-*l/56.2
\[\leadsto \color{blue}{\frac{\left(\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{1}{3 \cdot a}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}\]
Simplified27.1
\[\leadsto \frac{\color{blue}{\frac{3 \cdot \left(c \cdot a\right)}{a \cdot 3}}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}\]
- Using strategy
rm Applied *-un-lft-identity27.1
\[\leadsto \frac{\frac{3 \cdot \left(c \cdot a\right)}{a \cdot 3}}{\color{blue}{1 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}}\]
Applied *-un-lft-identity27.1
\[\leadsto \frac{\color{blue}{1 \cdot \frac{3 \cdot \left(c \cdot a\right)}{a \cdot 3}}}{1 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}\]
Applied times-frac27.1
\[\leadsto \color{blue}{\frac{1}{1} \cdot \frac{\frac{3 \cdot \left(c \cdot a\right)}{a \cdot 3}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}\]
Simplified27.1
\[\leadsto \color{blue}{1} \cdot \frac{\frac{3 \cdot \left(c \cdot a\right)}{a \cdot 3}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}\]
Simplified25.5
\[\leadsto 1 \cdot \color{blue}{\frac{c}{\left(-b\right) - \sqrt{(c \cdot \left(a \cdot -3\right) + \left(b \cdot b\right))_*}}}\]
Taylor expanded around 0 4.3
\[\leadsto 1 \cdot \frac{c}{\left(-b\right) - \color{blue}{b}}\]
- Recombined 4 regimes into one program.
Final simplification7.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -2.817036323587252 \cdot 10^{+75}:\\
\;\;\;\;(\frac{-2}{3} \cdot \left(\frac{b}{a}\right) + \left(\frac{c}{\frac{b}{\frac{1}{2}}}\right))_*\\
\mathbf{elif}\;b \le 1.6112526981926432 \cdot 10^{-298}:\\
\;\;\;\;\frac{1}{a \cdot 3} \cdot \left(\sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)} + \left(-b\right)\right)\\
\mathbf{elif}\;b \le 9.940268438132398 \cdot 10^{+42}:\\
\;\;\;\;\frac{c}{\left(-b\right) - \sqrt{(c \cdot \left(a \cdot -3\right) + \left(b \cdot b\right))_*}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{\left(-b\right) - b}\\
\end{array}\]