- Split input into 4 regimes
if b < -1.263114766361561e+105
Initial program 45.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification45.7
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
- Using strategy
rm Applied div-inv45.8
\[\leadsto \color{blue}{\left(\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b\right) \cdot \frac{1}{2 \cdot a}}\]
Taylor expanded around -inf 3.4
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
if -1.263114766361561e+105 < b < 9.123125416596865e-212
Initial program 10.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification10.2
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
- Using strategy
rm Applied add-sqr-sqrt10.4
\[\leadsto \frac{\color{blue}{\sqrt{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4}} \cdot \sqrt{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4}}} - b}{2 \cdot a}\]
if 9.123125416596865e-212 < b < 3.7499400189058717e+146
Initial program 37.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification37.4
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
- Using strategy
rm Applied div-inv37.4
\[\leadsto \color{blue}{\left(\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b\right) \cdot \frac{1}{2 \cdot a}}\]
- Using strategy
rm Applied flip--37.5
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} \cdot \sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b \cdot b}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}} \cdot \frac{1}{2 \cdot a}\]
Applied associate-*l/37.5
\[\leadsto \color{blue}{\frac{\left(\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} \cdot \sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b \cdot b\right) \cdot \frac{1}{2 \cdot a}}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}}\]
Simplified14.5
\[\leadsto \frac{\color{blue}{\frac{-4 \cdot \left(c \cdot a\right) + 0}{\frac{a}{\frac{1}{2}}}}}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}\]
- Using strategy
rm Applied *-un-lft-identity14.5
\[\leadsto \frac{\frac{-4 \cdot \left(c \cdot a\right) + 0}{\frac{a}{\frac{1}{2}}}}{\color{blue}{1 \cdot \left(\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b\right)}}\]
Applied add-cube-cbrt15.3
\[\leadsto \frac{\color{blue}{\left(\sqrt[3]{\frac{-4 \cdot \left(c \cdot a\right) + 0}{\frac{a}{\frac{1}{2}}}} \cdot \sqrt[3]{\frac{-4 \cdot \left(c \cdot a\right) + 0}{\frac{a}{\frac{1}{2}}}}\right) \cdot \sqrt[3]{\frac{-4 \cdot \left(c \cdot a\right) + 0}{\frac{a}{\frac{1}{2}}}}}}{1 \cdot \left(\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b\right)}\]
Applied times-frac15.3
\[\leadsto \color{blue}{\frac{\sqrt[3]{\frac{-4 \cdot \left(c \cdot a\right) + 0}{\frac{a}{\frac{1}{2}}}} \cdot \sqrt[3]{\frac{-4 \cdot \left(c \cdot a\right) + 0}{\frac{a}{\frac{1}{2}}}}}{1} \cdot \frac{\sqrt[3]{\frac{-4 \cdot \left(c \cdot a\right) + 0}{\frac{a}{\frac{1}{2}}}}}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}}\]
Simplified15.3
\[\leadsto \color{blue}{\left(\sqrt[3]{-2 \cdot c} \cdot \sqrt[3]{-2 \cdot c}\right)} \cdot \frac{\sqrt[3]{\frac{-4 \cdot \left(c \cdot a\right) + 0}{\frac{a}{\frac{1}{2}}}}}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}\]
Simplified7.9
\[\leadsto \left(\sqrt[3]{-2 \cdot c} \cdot \sqrt[3]{-2 \cdot c}\right) \cdot \color{blue}{\frac{\sqrt[3]{c \cdot -2}}{b + \sqrt{b \cdot b + \left(a \cdot c\right) \cdot -4}}}\]
if 3.7499400189058717e+146 < b
Initial program 62.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification62.0
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
- Using strategy
rm Applied div-inv62.0
\[\leadsto \color{blue}{\left(\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b\right) \cdot \frac{1}{2 \cdot a}}\]
Taylor expanded around inf 1.3
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified1.3
\[\leadsto \color{blue}{\frac{-c}{b}}\]
- Recombined 4 regimes into one program.
Final simplification6.9
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.263114766361561 \cdot 10^{+105}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{elif}\;b \le 9.123125416596865 \cdot 10^{-212}:\\
\;\;\;\;\frac{\sqrt{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4}} \cdot \sqrt{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4}} - b}{a \cdot 2}\\
\mathbf{elif}\;b \le 3.7499400189058717 \cdot 10^{+146}:\\
\;\;\;\;\left(\sqrt[3]{-2 \cdot c} \cdot \sqrt[3]{-2 \cdot c}\right) \cdot \frac{\sqrt[3]{-2 \cdot c}}{b + \sqrt{\left(c \cdot a\right) \cdot -4 + b \cdot b}}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}\]