- Split input into 4 regimes
if b < -8.687420785654022e+64
Initial program 56.4
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification56.4
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv56.4
\[\leadsto \color{blue}{\left(\left(-b\right) - \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}\]
Taylor expanded around -inf 3.7
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified3.7
\[\leadsto \color{blue}{\frac{-c}{b}}\]
if -8.687420785654022e+64 < b < -2.4136707020362904e-185
Initial program 36.2
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification36.2
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv36.2
\[\leadsto \color{blue}{\left(\left(-b\right) - \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}\]
- Using strategy
rm Applied flip--36.3
\[\leadsto \color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} \cdot \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}{\left(-b\right) + \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}} \cdot \frac{1}{2 \cdot a}\]
Applied associate-*l/36.4
\[\leadsto \color{blue}{\frac{\left(\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} \cdot \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}{\left(-b\right) + \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}}\]
Simplified16.0
\[\leadsto \frac{\color{blue}{\frac{\left(a \cdot 4\right) \cdot c}{2 \cdot a}}}{\left(-b\right) + \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}\]
if -2.4136707020362904e-185 < b < 1.5687409701741605e+116
Initial program 10.6
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification10.6
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied clear-num10.7
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) - \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}}}\]
if 1.5687409701741605e+116 < b
Initial program 49.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification49.5
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 3.0
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Simplified3.0
\[\leadsto \color{blue}{\frac{-b}{a}}\]
- Recombined 4 regimes into one program.
Final simplification8.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -8.687420785654022 \cdot 10^{+64}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{elif}\;b \le -2.4136707020362904 \cdot 10^{-185}:\\
\;\;\;\;\frac{\frac{\left(4 \cdot a\right) \cdot c}{2 \cdot a}}{\left(-b\right) + \sqrt{b \cdot b - a \cdot \left(c \cdot 4\right)}}\\
\mathbf{elif}\;b \le 1.5687409701741605 \cdot 10^{+116}:\\
\;\;\;\;\frac{1}{\frac{2 \cdot a}{\left(-b\right) - \sqrt{b \cdot b - a \cdot \left(c \cdot 4\right)}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{-b}{a}\\
\end{array}\]