- Split input into 4 regimes
if b < -1.7820655524002302e138
Initial program 62.8
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 1.6
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified1.6
\[\leadsto \color{blue}{\frac{c}{b} \cdot -1}\]
if -1.7820655524002302e138 < b < -3.1647221361954567e-309
Initial program 33.9
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip--33.9
\[\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}\]
Simplified16.2
\[\leadsto \frac{\frac{\color{blue}{0 + 4 \cdot \left(a \cdot c\right)}}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
Simplified16.2
\[\leadsto \frac{\frac{0 + 4 \cdot \left(a \cdot c\right)}{\color{blue}{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} - b}}}{2 \cdot a}\]
- Using strategy
rm Applied clear-num16.4
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\frac{0 + 4 \cdot \left(a \cdot c\right)}{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} - b}}}}\]
Simplified15.5
\[\leadsto \frac{1}{\color{blue}{\left(\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} - b\right) \cdot \left(\frac{a}{4} \cdot \frac{2}{a \cdot c}\right)}}\]
Taylor expanded around 0 9.1
\[\leadsto \frac{1}{\left(\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} - b\right) \cdot \color{blue}{\frac{0.5}{c}}}\]
- Using strategy
rm Applied add-sqr-sqrt9.1
\[\leadsto \frac{\color{blue}{\sqrt{1} \cdot \sqrt{1}}}{\left(\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} - b\right) \cdot \frac{0.5}{c}}\]
Applied times-frac8.8
\[\leadsto \color{blue}{\frac{\sqrt{1}}{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} - b} \cdot \frac{\sqrt{1}}{\frac{0.5}{c}}}\]
Simplified8.8
\[\leadsto \color{blue}{\frac{1}{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} - b}} \cdot \frac{\sqrt{1}}{\frac{0.5}{c}}\]
Simplified8.7
\[\leadsto \frac{1}{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} - b} \cdot \color{blue}{\frac{c}{0.5}}\]
if -3.1647221361954567e-309 < b < 7.32136348120136338e70
Initial program 9.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-sub9.5
\[\leadsto \color{blue}{\frac{-b}{2 \cdot a} - \frac{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}}\]
Simplified9.5
\[\leadsto \color{blue}{\frac{-b}{a \cdot 2}} - \frac{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Simplified9.5
\[\leadsto \frac{-b}{a \cdot 2} - \color{blue}{\frac{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{a \cdot 2}}\]
if 7.32136348120136338e70 < b
Initial program 41.2
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 4.6
\[\leadsto \color{blue}{1 \cdot \frac{c}{b} - 1 \cdot \frac{b}{a}}\]
Simplified4.6
\[\leadsto \color{blue}{1 \cdot \left(\frac{c}{b} - \frac{b}{a}\right)}\]
- Recombined 4 regimes into one program.
Final simplification6.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.7820655524002302 \cdot 10^{138}:\\
\;\;\;\;\frac{c}{b} \cdot -1\\
\mathbf{elif}\;b \le -3.1647221361954567 \cdot 10^{-309}:\\
\;\;\;\;\frac{1}{\sqrt{b \cdot b - 4 \cdot \left(c \cdot a\right)} - b} \cdot \frac{c}{0.5}\\
\mathbf{elif}\;b \le 7.32136348120136338 \cdot 10^{70}:\\
\;\;\;\;\frac{-b}{a \cdot 2} - \frac{\sqrt{b \cdot b - 4 \cdot \left(c \cdot a\right)}}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;1 \cdot \left(\frac{c}{b} - \frac{b}{a}\right)\\
\end{array}\]