- Split input into 4 regimes
if b < -8.3719584206639e+49
Initial program 35.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification35.5
\[\leadsto \frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{2 \cdot a}\]
Taylor expanded around -inf 6.5
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
if -8.3719584206639e+49 < b < 6.389550873438033e-306
Initial program 9.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification9.5
\[\leadsto \frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{2 \cdot a}\]
- Using strategy
rm Applied div-inv9.7
\[\leadsto \color{blue}{\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b\right) \cdot \frac{1}{2 \cdot a}}\]
if 6.389550873438033e-306 < b < 8.385120305158761e+80
Initial program 31.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification31.1
\[\leadsto \frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{2 \cdot a}\]
- Using strategy
rm Applied flip--31.2
\[\leadsto \frac{\color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b \cdot b}{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + b}}}{2 \cdot a}\]
Applied associate-/l/36.2
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b \cdot b}{\left(2 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + b\right)}}\]
Simplified22.4
\[\leadsto \frac{\color{blue}{\left(-4 \cdot c\right) \cdot a}}{\left(2 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + b\right)}\]
- Using strategy
rm Applied associate-/r*16.4
\[\leadsto \color{blue}{\frac{\frac{\left(-4 \cdot c\right) \cdot a}{2 \cdot a}}{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + b}}\]
Taylor expanded around 0 9.4
\[\leadsto \frac{\color{blue}{-2 \cdot c}}{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + b}\]
if 8.385120305158761e+80 < b
Initial program 57.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification57.7
\[\leadsto \frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}{2 \cdot a}\]
Taylor expanded around inf 2.9
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified2.9
\[\leadsto \color{blue}{\frac{-c}{b}}\]
- Recombined 4 regimes into one program.
Final simplification7.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -8.3719584206639 \cdot 10^{+49}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{elif}\;b \le 6.389550873438033 \cdot 10^{-306}:\\
\;\;\;\;\left(\sqrt{b \cdot b - \left(a \cdot 4\right) \cdot c} - b\right) \cdot \frac{1}{a \cdot 2}\\
\mathbf{elif}\;b \le 8.385120305158761 \cdot 10^{+80}:\\
\;\;\;\;\frac{-2 \cdot c}{\sqrt{b \cdot b - \left(a \cdot 4\right) \cdot c} + b}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}\]