- Split input into 4 regimes
if (- b) < -5.574371059116902e+91
Initial program 43.2
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around 0 43.2
\[\leadsto \frac{\left(-b\right) - \sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
Taylor expanded around inf 4.3
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
if -5.574371059116902e+91 < (- b) < -3.4735799267547486e-308
Initial program 9.7
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around 0 9.7
\[\leadsto \frac{\left(-b\right) - \sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv9.9
\[\leadsto \color{blue}{\left(\left(-b\right) - \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}\]
if -3.4735799267547486e-308 < (- b) < 6.299526501700798e+78
Initial program 30.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around 0 30.0
\[\leadsto \frac{\left(-b\right) - \sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv30.0
\[\leadsto \color{blue}{\left(\left(-b\right) - \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}\]
- Using strategy
rm Applied flip--30.1
\[\leadsto \color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)} \cdot \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}{\left(-b\right) + \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}} \cdot \frac{1}{2 \cdot a}\]
Applied frac-times34.8
\[\leadsto \color{blue}{\frac{\left(\left(-b\right) \cdot \left(-b\right) - \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)} \cdot \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)}\right) \cdot 1}{\left(\left(-b\right) + \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)}\right) \cdot \left(2 \cdot a\right)}}\]
Simplified21.3
\[\leadsto \frac{\color{blue}{4 \cdot \left(c \cdot a\right)}}{\left(\left(-b\right) + \sqrt{{b}^{2} - 4 \cdot \left(a \cdot c\right)}\right) \cdot \left(2 \cdot a\right)}\]
Simplified21.3
\[\leadsto \frac{4 \cdot \left(c \cdot a\right)}{\color{blue}{\left(\sqrt{b \cdot b + \left(c \cdot -4\right) \cdot a} - b\right) \cdot \left(2 \cdot a\right)}}\]
- Using strategy
rm Applied times-frac15.9
\[\leadsto \color{blue}{\frac{4}{\sqrt{b \cdot b + \left(c \cdot -4\right) \cdot a} - b} \cdot \frac{c \cdot a}{2 \cdot a}}\]
Simplified8.9
\[\leadsto \frac{4}{\sqrt{b \cdot b + \left(c \cdot -4\right) \cdot a} - b} \cdot \color{blue}{\frac{c}{2}}\]
if 6.299526501700798e+78 < (- b)
Initial program 57.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 2.8
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified2.8
\[\leadsto \color{blue}{\frac{-c}{b}}\]
- Recombined 4 regimes into one program.
Final simplification6.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;-b \le -5.574371059116902 \cdot 10^{+91}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{elif}\;-b \le -3.4735799267547486 \cdot 10^{-308}:\\
\;\;\;\;\left(\left(-b\right) - \sqrt{{b}^{2} - \left(a \cdot c\right) \cdot 4}\right) \cdot \frac{1}{2 \cdot a}\\
\mathbf{elif}\;-b \le 6.299526501700798 \cdot 10^{+78}:\\
\;\;\;\;\frac{4}{\sqrt{b \cdot b + \left(c \cdot -4\right) \cdot a} - b} \cdot \frac{c}{2}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}\]