- Split input into 4 regimes
if b < -5.855495265453979e+118
Initial program 59.8
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around 0 59.8
\[\leadsto \frac{\left(-b\right) - \sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
Simplified59.8
\[\leadsto \frac{\left(-b\right) - \sqrt{\color{blue}{b \cdot b - a \cdot \left(4 \cdot c\right)}}}{2 \cdot a}\]
Taylor expanded around -inf 2.0
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified2.0
\[\leadsto \color{blue}{-\frac{c}{b}}\]
if -5.855495265453979e+118 < b < -4.411709356294081e-220
Initial program 35.8
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around 0 35.8
\[\leadsto \frac{\left(-b\right) - \sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
Simplified35.9
\[\leadsto \frac{\left(-b\right) - \sqrt{\color{blue}{b \cdot b - a \cdot \left(4 \cdot c\right)}}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv35.9
\[\leadsto \color{blue}{\left(\left(-b\right) - \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}\]
- Using strategy
rm Applied flip--36.0
\[\leadsto \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)}}} \cdot \frac{1}{2 \cdot a}\]
Applied associate-*l/36.0
\[\leadsto \color{blue}{\frac{\left(\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)}\right) \cdot \frac{1}{2 \cdot a}}{\left(-b\right) + \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}}\]
Simplified14.2
\[\leadsto \frac{\color{blue}{-\frac{c \cdot a}{a} \cdot -2}}{\left(-b\right) + \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}\]
Taylor expanded around inf 6.7
\[\leadsto \frac{-\color{blue}{c} \cdot -2}{\left(-b\right) + \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}\]
if -4.411709356294081e-220 < b < 2.769430935392486e+93
Initial program 10.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around 0 10.0
\[\leadsto \frac{\left(-b\right) - \sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
Simplified10.0
\[\leadsto \frac{\left(-b\right) - \sqrt{\color{blue}{b \cdot b - a \cdot \left(4 \cdot c\right)}}}{2 \cdot a}\]
if 2.769430935392486e+93 < b
Initial program 44.3
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 10.5
\[\leadsto \frac{\color{blue}{2 \cdot \frac{a \cdot c}{b} - 2 \cdot b}}{2 \cdot a}\]
Simplified4.0
\[\leadsto \frac{\color{blue}{\left(a \cdot \frac{c}{b} - b\right) \cdot 2}}{2 \cdot a}\]
- Recombined 4 regimes into one program.
Final simplification6.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -5.855495265453979 \cdot 10^{+118}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{elif}\;b \le -4.411709356294081 \cdot 10^{-220}:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) + \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}\\
\mathbf{elif}\;b \le 2.769430935392486 \cdot 10^{+93}:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(\frac{c}{b} \cdot a - b\right) \cdot 2}{a \cdot 2}\\
\end{array}\]