- Split input into 4 regimes
if b < -5.874592666189354e+51 or -4.716248046325564e-77 < b < -2.068510444224263e-85
Initial program 56.2
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv56.2
\[\leadsto \color{blue}{\left(\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}\]
Taylor expanded around -inf 4.3
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified4.3
\[\leadsto \color{blue}{\frac{-c}{b}}\]
if -5.874592666189354e+51 < b < -4.716248046325564e-77
Initial program 43.1
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv43.1
\[\leadsto \color{blue}{\left(\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}\]
- Using strategy
rm Applied flip--43.2
\[\leadsto \color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} \cdot \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}} \cdot \frac{1}{2 \cdot a}\]
Applied associate-*l/43.3
\[\leadsto \color{blue}{\frac{\left(\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} \cdot \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}\]
Simplified15.8
\[\leadsto \frac{\color{blue}{\frac{\left(4 \cdot a\right) \cdot c}{2 \cdot a}}}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}\]
if -2.068510444224263e-85 < b < 1.04628164907388e+86
Initial program 13.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
if 1.04628164907388e+86 < b
Initial program 42.8
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 4.5
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Simplified4.5
\[\leadsto \color{blue}{\frac{-b}{a}}\]
- Recombined 4 regimes into one program.
Final simplification9.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -5.874592666189354 \cdot 10^{+51}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{elif}\;b \le -4.716248046325564 \cdot 10^{-77}:\\
\;\;\;\;\frac{\frac{\left(a \cdot 4\right) \cdot c}{a \cdot 2}}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(c \cdot a\right)}}\\
\mathbf{elif}\;b \le -2.068510444224263 \cdot 10^{-85}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{elif}\;b \le 1.04628164907388 \cdot 10^{+86}:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(c \cdot a\right)}}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;-\frac{b}{a}\\
\end{array}\]