- Split input into 4 regimes
if b < -3.628278339169478e+149
Initial program 62.6
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 1.5
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified1.5
\[\leadsto \color{blue}{\frac{-c}{b}}\]
if -3.628278339169478e+149 < b < 1.5161853332160458e-263
Initial program 32.7
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip--32.8
\[\leadsto \frac{\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)}}}}{2 \cdot a}\]
Applied associate-/l/37.3
\[\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(2 \cdot a\right) \cdot \left(\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right)}}\]
Simplified19.3
\[\leadsto \frac{\color{blue}{\left(c \cdot 4\right) \cdot a}}{\left(2 \cdot a\right) \cdot \left(\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right)}\]
- Using strategy
rm Applied associate-/r*13.5
\[\leadsto \color{blue}{\frac{\frac{\left(c \cdot 4\right) \cdot a}{2 \cdot a}}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}\]
Simplified13.5
\[\leadsto \frac{\frac{\left(c \cdot 4\right) \cdot a}{2 \cdot a}}{\color{blue}{\sqrt{-4 \cdot \left(a \cdot c\right) + b \cdot b} - b}}\]
Taylor expanded around inf 8.0
\[\leadsto \frac{\color{blue}{2 \cdot c}}{\sqrt{-4 \cdot \left(a \cdot c\right) + b \cdot b} - b}\]
- Using strategy
rm Applied add-sqr-sqrt8.0
\[\leadsto \frac{2 \cdot c}{\sqrt{\color{blue}{\sqrt{-4 \cdot \left(a \cdot c\right) + b \cdot b} \cdot \sqrt{-4 \cdot \left(a \cdot c\right) + b \cdot b}}} - b}\]
Applied sqrt-prod8.2
\[\leadsto \frac{2 \cdot c}{\color{blue}{\sqrt{\sqrt{-4 \cdot \left(a \cdot c\right) + b \cdot b}} \cdot \sqrt{\sqrt{-4 \cdot \left(a \cdot c\right) + b \cdot b}}} - b}\]
if 1.5161853332160458e-263 < b < 6.959770719239994e+151
Initial program 8.1
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-sub8.1
\[\leadsto \color{blue}{\frac{-b}{2 \cdot a} - \frac{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}}\]
if 6.959770719239994e+151 < b
Initial program 59.6
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 2.3
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
- Recombined 4 regimes into one program.
Final simplification6.3
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -3.628278339169478 \cdot 10^{+149}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{elif}\;b \le 1.5161853332160458 \cdot 10^{-263}:\\
\;\;\;\;\frac{2 \cdot c}{\sqrt{\sqrt{\left(c \cdot a\right) \cdot -4 + b \cdot b}} \cdot \sqrt{\sqrt{\left(c \cdot a\right) \cdot -4 + b \cdot b}} - b}\\
\mathbf{elif}\;b \le 6.959770719239994 \cdot 10^{+151}:\\
\;\;\;\;\frac{-b}{a \cdot 2} - \frac{\sqrt{b \cdot b - 4 \cdot \left(c \cdot a\right)}}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\end{array}\]