- Split input into 4 regimes
if b < -1.414097958926068e+52 or -3.3495933623292597e+24 < b < -3.0952147242065757e-27 or -5.048430376004428e-61 < b < -1.8507836106114313e-103
Initial program 52.3
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied sub-neg52.3
\[\leadsto \frac{\left(-b\right) - \sqrt{\color{blue}{b \cdot b + \left(-4 \cdot \left(a \cdot c\right)\right)}}}{2 \cdot a}\]
Taylor expanded around -inf 9.2
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified9.2
\[\leadsto \color{blue}{\frac{-c}{b}}\]
if -1.414097958926068e+52 < b < -3.3495933623292597e+24 or -1.8507836106114313e-103 < b < 1.069932557471162e+80
Initial program 14.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied sub-neg14.5
\[\leadsto \frac{\left(-b\right) - \sqrt{\color{blue}{b \cdot b + \left(-4 \cdot \left(a \cdot c\right)\right)}}}{2 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity14.5
\[\leadsto \frac{\color{blue}{1 \cdot \left(\left(-b\right) - \sqrt{b \cdot b + \left(-4 \cdot \left(a \cdot c\right)\right)}\right)}}{2 \cdot a}\]
Applied times-frac14.5
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{\left(-b\right) - \sqrt{b \cdot b + \left(-4 \cdot \left(a \cdot c\right)\right)}}{a}}\]
Simplified14.5
\[\leadsto \color{blue}{\frac{1}{2}} \cdot \frac{\left(-b\right) - \sqrt{b \cdot b + \left(-4 \cdot \left(a \cdot c\right)\right)}}{a}\]
Simplified14.5
\[\leadsto \frac{1}{2} \cdot \color{blue}{\frac{\left(-b\right) - \sqrt{\left(-4 \cdot a\right) \cdot c + b \cdot b}}{a}}\]
if -3.0952147242065757e-27 < b < -5.048430376004428e-61
Initial program 38.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip--38.1
\[\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/40.4
\[\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)}}\]
Simplified20.6
\[\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)}\]
if 1.069932557471162e+80 < b
Initial program 40.7
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 4.9
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
- Recombined 4 regimes into one program.
Final simplification11.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.414097958926068 \cdot 10^{+52}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{elif}\;b \le -3.3495933623292597 \cdot 10^{+24}:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{\left(-4 \cdot a\right) \cdot c + b \cdot b}}{a} \cdot \frac{1}{2}\\
\mathbf{elif}\;b \le -3.0952147242065757 \cdot 10^{-27}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{elif}\;b \le -5.048430376004428 \cdot 10^{-61}:\\
\;\;\;\;\frac{a \cdot \left(4 \cdot c\right)}{\left(2 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + \left(-b\right)\right)}\\
\mathbf{elif}\;b \le -1.8507836106114313 \cdot 10^{-103}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{elif}\;b \le 1.069932557471162 \cdot 10^{+80}:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{\left(-4 \cdot a\right) \cdot c + b \cdot b}}{a} \cdot \frac{1}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\end{array}\]