- Split input into 4 regimes
if b < -4.0906093545612224e+106
Initial program 46.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 3.6
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
if -4.0906093545612224e+106 < b < 2.0687500080625397e-307
Initial program 8.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 8.5
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
Simplified8.5
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*}}}{2 \cdot a}\]
if 2.0687500080625397e-307 < b < 1.756312982163782e+91
Initial program 32.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+32.2
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}}{2 \cdot a}\]
Applied associate-/l/36.1
\[\leadsto \color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\left(2 \cdot a\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right)}}\]
Simplified20.3
\[\leadsto \frac{\color{blue}{4 \cdot \left(c \cdot a\right)}}{\left(2 \cdot a\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right)}\]
- Using strategy
rm Applied *-un-lft-identity20.3
\[\leadsto \frac{4 \cdot \left(c \cdot a\right)}{\color{blue}{\left(1 \cdot \left(2 \cdot a\right)\right)} \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right)}\]
Applied associate-*l*20.3
\[\leadsto \frac{4 \cdot \left(c \cdot a\right)}{\color{blue}{1 \cdot \left(\left(2 \cdot a\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right)\right)}}\]
Applied *-un-lft-identity20.3
\[\leadsto \frac{\color{blue}{\left(1 \cdot 4\right)} \cdot \left(c \cdot a\right)}{1 \cdot \left(\left(2 \cdot a\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right)\right)}\]
Applied associate-*l*20.3
\[\leadsto \frac{\color{blue}{1 \cdot \left(4 \cdot \left(c \cdot a\right)\right)}}{1 \cdot \left(\left(2 \cdot a\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right)\right)}\]
Applied times-frac20.3
\[\leadsto \color{blue}{\frac{1}{1} \cdot \frac{4 \cdot \left(c \cdot a\right)}{\left(2 \cdot a\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right)}}\]
Simplified20.3
\[\leadsto \color{blue}{1} \cdot \frac{4 \cdot \left(c \cdot a\right)}{\left(2 \cdot a\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right)}\]
Simplified9.1
\[\leadsto 1 \cdot \color{blue}{\frac{c \cdot 2}{\left(-b\right) - \sqrt{(\left(a \cdot c\right) \cdot -4 + \left(b \cdot b\right))_*}}}\]
if 1.756312982163782e+91 < b
Initial program 58.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{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}}\]
- Recombined 4 regimes into one program.
Final simplification6.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -4.0906093545612224 \cdot 10^{+106}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{elif}\;b \le 2.0687500080625397 \cdot 10^{-307}:\\
\;\;\;\;\frac{\sqrt{(\left(c \cdot a\right) \cdot -4 + \left(b \cdot b\right))_*} + \left(-b\right)}{a \cdot 2}\\
\mathbf{elif}\;b \le 1.756312982163782 \cdot 10^{+91}:\\
\;\;\;\;\frac{c \cdot 2}{\left(-b\right) - \sqrt{(\left(c \cdot a\right) \cdot -4 + \left(b \cdot b\right))_*}}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}\]