- 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 flip--39.3
\[\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/42.6
\[\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)}}\]
Simplified17.7
\[\leadsto \frac{\color{blue}{\left(a \cdot c\right) \cdot 4}}{\left(2 \cdot a\right) \cdot \left(\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \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 associate-/r*11.5
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2}}{a}}\]
- Using strategy
rm Applied div-inv11.7
\[\leadsto \color{blue}{\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2} \cdot \frac{1}{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}\]
- Using strategy
rm Applied associate-/r*56.7
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2}}{a}}\]
- Using strategy
rm Applied *-un-lft-identity56.7
\[\leadsto \frac{\color{blue}{1 \cdot \frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2}}}{a}\]
Applied associate-/l*56.7
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2}}}}\]
Taylor expanded around 0 1.9
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Simplified1.9
\[\leadsto \color{blue}{-\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(a \cdot c\right) \cdot 4}{\left(2 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} + \left(-b\right)\right)}\\
\mathbf{elif}\;b \le 2.696518439055105 \cdot 10^{+143}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{\left(-b\right) - \sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}}{2}\\
\mathbf{else}:\\
\;\;\;\;-\frac{b}{a}\\
\end{array}\]