- Split input into 3 regimes
if b < -9.911609721462535e+93
Initial program 45.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv45.3
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \frac{1}{2 \cdot a}}\]
- Using strategy
rm Applied *-commutative45.3
\[\leadsto \left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \frac{1}{\color{blue}{a \cdot 2}}\]
Applied add-sqr-sqrt45.3
\[\leadsto \left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \frac{\color{blue}{\sqrt{1} \cdot \sqrt{1}}}{a \cdot 2}\]
Applied times-frac45.3
\[\leadsto \left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \color{blue}{\left(\frac{\sqrt{1}}{a} \cdot \frac{\sqrt{1}}{2}\right)}\]
Applied associate-*r*45.3
\[\leadsto \color{blue}{\left(\left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \frac{\sqrt{1}}{a}\right) \cdot \frac{\sqrt{1}}{2}}\]
Simplified45.2
\[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a}} \cdot \frac{\sqrt{1}}{2}\]
Taylor expanded around -inf 3.4
\[\leadsto \color{blue}{\left(2 \cdot \frac{c}{b} - 2 \cdot \frac{b}{a}\right)} \cdot \frac{\sqrt{1}}{2}\]
if -9.911609721462535e+93 < b < 3.8681552371770574e-95
Initial program 12.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv12.6
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \frac{1}{2 \cdot a}}\]
- Using strategy
rm Applied *-commutative12.6
\[\leadsto \left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \frac{1}{\color{blue}{a \cdot 2}}\]
Applied add-sqr-sqrt12.6
\[\leadsto \left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \frac{\color{blue}{\sqrt{1} \cdot \sqrt{1}}}{a \cdot 2}\]
Applied times-frac12.6
\[\leadsto \left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \color{blue}{\left(\frac{\sqrt{1}}{a} \cdot \frac{\sqrt{1}}{2}\right)}\]
Applied associate-*r*12.6
\[\leadsto \color{blue}{\left(\left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \frac{\sqrt{1}}{a}\right) \cdot \frac{\sqrt{1}}{2}}\]
Simplified12.5
\[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a}} \cdot \frac{\sqrt{1}}{2}\]
if 3.8681552371770574e-95 < b
Initial program 52.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv52.5
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \frac{1}{2 \cdot a}}\]
- Using strategy
rm Applied *-commutative52.5
\[\leadsto \left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \frac{1}{\color{blue}{a \cdot 2}}\]
Applied add-sqr-sqrt52.5
\[\leadsto \left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \frac{\color{blue}{\sqrt{1} \cdot \sqrt{1}}}{a \cdot 2}\]
Applied times-frac52.5
\[\leadsto \left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \color{blue}{\left(\frac{\sqrt{1}}{a} \cdot \frac{\sqrt{1}}{2}\right)}\]
Applied associate-*r*52.5
\[\leadsto \color{blue}{\left(\left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \frac{\sqrt{1}}{a}\right) \cdot \frac{\sqrt{1}}{2}}\]
Simplified52.5
\[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a}} \cdot \frac{\sqrt{1}}{2}\]
Taylor expanded around inf 9.2
\[\leadsto \color{blue}{\left(-2 \cdot \frac{c}{b}\right)} \cdot \frac{\sqrt{1}}{2}\]
- Recombined 3 regimes into one program.
Final simplification9.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -9.91160972146253504 \cdot 10^{93}:\\
\;\;\;\;\left(2 \cdot \frac{c}{b} - 2 \cdot \frac{b}{a}\right) \cdot \frac{\sqrt{1}}{2}\\
\mathbf{elif}\;b \le 3.86815523717705745 \cdot 10^{-95}:\\
\;\;\;\;\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a} \cdot \frac{\sqrt{1}}{2}\\
\mathbf{else}:\\
\;\;\;\;\left(-2 \cdot \frac{c}{b}\right) \cdot \frac{\sqrt{1}}{2}\\
\end{array}\]