- Split input into 4 regimes
if b < -1.6964169257649298e+81
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.6
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified2.6
\[\leadsto \color{blue}{-\frac{c}{b}}\]
if -1.6964169257649298e+81 < b < -2.650832923705524e-105
Initial program 39.2
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity39.2
\[\leadsto \frac{\left(-b\right) - \color{blue}{1 \cdot \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
Applied *-un-lft-identity39.2
\[\leadsto \frac{\color{blue}{1 \cdot \left(-b\right)} - 1 \cdot \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied distribute-lft-out--39.2
\[\leadsto \frac{\color{blue}{1 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right)}}{2 \cdot a}\]
Applied times-frac39.2
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{a}}\]
Simplified39.2
\[\leadsto \color{blue}{\frac{1}{2}} \cdot \frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{a}\]
Taylor expanded around inf 39.2
\[\leadsto \frac{1}{2} \cdot \frac{\left(-b\right) - \sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}}{a}\]
Simplified39.2
\[\leadsto \frac{1}{2} \cdot \frac{\left(-b\right) - \sqrt{\color{blue}{b \cdot b - a \cdot \left(4 \cdot c\right)}}}{a}\]
- Using strategy
rm Applied flip--39.3
\[\leadsto \frac{1}{2} \cdot \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} \cdot \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}{\left(-b\right) + \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}}}{a}\]
Applied associate-/l/42.5
\[\leadsto \frac{1}{2} \cdot \color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} \cdot \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}{a \cdot \left(\left(-b\right) + \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}\right)}}\]
Simplified17.6
\[\leadsto \frac{1}{2} \cdot \frac{\color{blue}{\left(4 \cdot c\right) \cdot a}}{a \cdot \left(\left(-b\right) + \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}\right)}\]
if -2.650832923705524e-105 < b < 2.696518439055105e+143
Initial program 11.6
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity11.6
\[\leadsto \frac{\left(-b\right) - \color{blue}{1 \cdot \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
Applied *-un-lft-identity11.6
\[\leadsto \frac{\color{blue}{1 \cdot \left(-b\right)} - 1 \cdot \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied distribute-lft-out--11.6
\[\leadsto \frac{\color{blue}{1 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right)}}{2 \cdot a}\]
Applied times-frac11.5
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{a}}\]
Simplified11.5
\[\leadsto \color{blue}{\frac{1}{2}} \cdot \frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{a}\]
Taylor expanded around inf 11.5
\[\leadsto \frac{1}{2} \cdot \frac{\left(-b\right) - \sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}}{a}\]
Simplified11.5
\[\leadsto \frac{1}{2} \cdot \frac{\left(-b\right) - \sqrt{\color{blue}{b \cdot b - a \cdot \left(4 \cdot c\right)}}}{a}\]
if 2.696518439055105e+143 < b
Initial program 56.7
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 1.7
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
- Recombined 4 regimes into one program.
Final simplification9.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.6964169257649298 \cdot 10^{+81}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{elif}\;b \le -2.650832923705524 \cdot 10^{-105}:\\
\;\;\;\;\frac{\left(c \cdot 4\right) \cdot a}{a \cdot \left(\sqrt{b \cdot b - \left(c \cdot 4\right) \cdot a} + \left(-b\right)\right)} \cdot \frac{1}{2}\\
\mathbf{elif}\;b \le 2.696518439055105 \cdot 10^{+143}:\\
\;\;\;\;\frac{1}{2} \cdot \frac{\left(-b\right) - \sqrt{b \cdot b - \left(c \cdot 4\right) \cdot a}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\end{array}\]