- Split input into 4 regimes
if b < -4.5574647268420826e+106
Initial program 46.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification46.4
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
- Using strategy
rm Applied div-inv46.5
\[\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 2.8
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
if -4.5574647268420826e+106 < b < -2.4060449925563067e-305
Initial program 9.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification9.0
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
- Using strategy
rm Applied sub-neg9.0
\[\leadsto \frac{\sqrt{\color{blue}{b \cdot b + \left(-\left(c \cdot a\right) \cdot 4\right)}} - b}{2 \cdot a}\]
if -2.4060449925563067e-305 < b < 8.558214290723834e+125
Initial program 33.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification33.1
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
- Using strategy
rm Applied div-inv33.1
\[\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--33.2
\[\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/33.3
\[\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.7
\[\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.7
\[\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 associate-/r/14.7
\[\leadsto \frac{\color{blue}{\frac{-4 \cdot \left(c \cdot a\right) + 0}{a} \cdot \frac{1}{2}}}{1 \cdot \left(\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b\right)}\]
Applied times-frac14.8
\[\leadsto \color{blue}{\frac{\frac{-4 \cdot \left(c \cdot a\right) + 0}{a}}{1} \cdot \frac{\frac{1}{2}}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}}\]
Simplified8.6
\[\leadsto \color{blue}{\frac{c}{\frac{-1}{4}}} \cdot \frac{\frac{1}{2}}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}\]
if 8.558214290723834e+125 < b
Initial program 60.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification60.2
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
Taylor expanded around inf 2.3
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified2.3
\[\leadsto \color{blue}{\frac{-c}{b}}\]
- Recombined 4 regimes into one program.
Final simplification6.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -4.5574647268420826 \cdot 10^{+106}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{elif}\;b \le -2.4060449925563067 \cdot 10^{-305}:\\
\;\;\;\;\frac{\sqrt{b \cdot b + \left(c \cdot a\right) \cdot -4} - b}{a \cdot 2}\\
\mathbf{elif}\;b \le 8.558214290723834 \cdot 10^{+125}:\\
\;\;\;\;\frac{\frac{1}{2}}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b} \cdot \frac{c}{\frac{-1}{4}}\\
\mathbf{else}:\\
\;\;\;\;\frac{-c}{b}\\
\end{array}\]