- Split input into 3 regimes
if b < -1.836394958733996e+106
Initial program 44.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Simplified44.7
\[\leadsto \color{blue}{\frac{\frac{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*} - b}{2}}{a}}\]
Taylor expanded around -inf 4.0
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
if -1.836394958733996e+106 < b < 1.571257464516749e-99
Initial program 12.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Simplified12.4
\[\leadsto \color{blue}{\frac{\frac{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*} - b}{2}}{a}}\]
- Using strategy
rm Applied *-un-lft-identity12.4
\[\leadsto \frac{\color{blue}{1 \cdot \frac{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*} - b}{2}}}{a}\]
Applied associate-/l*12.5
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\frac{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*} - b}{2}}}}\]
- Using strategy
rm Applied div-inv12.5
\[\leadsto \frac{1}{\color{blue}{a \cdot \frac{1}{\frac{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*} - b}{2}}}}\]
Applied associate-/r*12.5
\[\leadsto \color{blue}{\frac{\frac{1}{a}}{\frac{1}{\frac{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*} - b}{2}}}}\]
Simplified12.5
\[\leadsto \frac{\frac{1}{a}}{\color{blue}{\frac{2}{\sqrt{(-4 \cdot \left(a \cdot c\right) + \left(b \cdot b\right))_*} - b}}}\]
if 1.571257464516749e-99 < b
Initial program 52.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Simplified52.0
\[\leadsto \color{blue}{\frac{\frac{\sqrt{(b \cdot b + \left(\left(a \cdot c\right) \cdot -4\right))_*} - b}{2}}{a}}\]
Taylor expanded around inf 10.1
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified10.1
\[\leadsto \color{blue}{-\frac{c}{b}}\]
- Recombined 3 regimes into one program.
Final simplification10.3
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.836394958733996 \cdot 10^{+106}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{elif}\;b \le 1.571257464516749 \cdot 10^{-99}:\\
\;\;\;\;\frac{\frac{1}{a}}{\frac{2}{\sqrt{(-4 \cdot \left(c \cdot a\right) + \left(b \cdot b\right))_*} - b}}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}\]