- Split input into 4 regimes
if b_2 < -1.55020281846411e+144
Initial program 61.9
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied fma-neg61.9
\[\leadsto \frac{\left(-b_2\right) - \sqrt{\color{blue}{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}}{a}\]
- Using strategy
rm Applied flip--62.0
\[\leadsto \frac{\color{blue}{\frac{\left(-b_2\right) \cdot \left(-b_2\right) - \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*} \cdot \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}{\left(-b_2\right) + \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}}}{a}\]
Applied associate-/l/62.0
\[\leadsto \color{blue}{\frac{\left(-b_2\right) \cdot \left(-b_2\right) - \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*} \cdot \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}{a \cdot \left(\left(-b_2\right) + \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}\right)}}\]
Simplified36.4
\[\leadsto \frac{\color{blue}{a \cdot c}}{a \cdot \left(\left(-b_2\right) + \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}\right)}\]
- Using strategy
rm Applied times-frac35.7
\[\leadsto \color{blue}{\frac{a}{a} \cdot \frac{c}{\left(-b_2\right) + \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}}\]
Simplified35.7
\[\leadsto \color{blue}{1} \cdot \frac{c}{\left(-b_2\right) + \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}\]
Simplified35.7
\[\leadsto 1 \cdot \color{blue}{\frac{c}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}\]
Taylor expanded around -inf 6.3
\[\leadsto 1 \cdot \frac{c}{\color{blue}{\frac{1}{2} \cdot \frac{a \cdot c}{b_2} - 2 \cdot b_2}}\]
Simplified6.3
\[\leadsto 1 \cdot \frac{c}{\color{blue}{(-2 \cdot b_2 + \left(\frac{\frac{1}{2}}{b_2} \cdot \left(c \cdot a\right)\right))_*}}\]
if -1.55020281846411e+144 < b_2 < -3.0257364350404464e-307
Initial program 34.4
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied fma-neg34.4
\[\leadsto \frac{\left(-b_2\right) - \sqrt{\color{blue}{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}}{a}\]
- Using strategy
rm Applied flip--34.5
\[\leadsto \frac{\color{blue}{\frac{\left(-b_2\right) \cdot \left(-b_2\right) - \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*} \cdot \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}{\left(-b_2\right) + \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}}}{a}\]
Applied associate-/l/38.6
\[\leadsto \color{blue}{\frac{\left(-b_2\right) \cdot \left(-b_2\right) - \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*} \cdot \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}{a \cdot \left(\left(-b_2\right) + \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}\right)}}\]
Simplified20.8
\[\leadsto \frac{\color{blue}{a \cdot c}}{a \cdot \left(\left(-b_2\right) + \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}\right)}\]
- Using strategy
rm Applied times-frac8.9
\[\leadsto \color{blue}{\frac{a}{a} \cdot \frac{c}{\left(-b_2\right) + \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}}\]
Simplified8.9
\[\leadsto \color{blue}{1} \cdot \frac{c}{\left(-b_2\right) + \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}\]
Simplified8.9
\[\leadsto 1 \cdot \color{blue}{\frac{c}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}\]
- Using strategy
rm Applied add-sqr-sqrt9.2
\[\leadsto 1 \cdot \frac{c}{\color{blue}{\sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2} \cdot \sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}\]
Applied associate-/r*9.3
\[\leadsto 1 \cdot \color{blue}{\frac{\frac{c}{\sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}{\sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}\]
if -3.0257364350404464e-307 < b_2 < 5.523479422929744e+47
Initial program 9.7
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied fma-neg9.7
\[\leadsto \frac{\left(-b_2\right) - \sqrt{\color{blue}{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}}{a}\]
if 5.523479422929744e+47 < b_2
Initial program 36.1
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied fma-neg36.1
\[\leadsto \frac{\left(-b_2\right) - \sqrt{\color{blue}{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}}{a}\]
- Using strategy
rm Applied flip--59.6
\[\leadsto \frac{\color{blue}{\frac{\left(-b_2\right) \cdot \left(-b_2\right) - \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*} \cdot \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}{\left(-b_2\right) + \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}}}{a}\]
Applied associate-/l/60.2
\[\leadsto \color{blue}{\frac{\left(-b_2\right) \cdot \left(-b_2\right) - \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*} \cdot \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}}{a \cdot \left(\left(-b_2\right) + \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}\right)}}\]
Simplified60.3
\[\leadsto \frac{\color{blue}{a \cdot c}}{a \cdot \left(\left(-b_2\right) + \sqrt{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}\right)}\]
Taylor expanded around 0 6.0
\[\leadsto \color{blue}{-2 \cdot \frac{b_2}{a}}\]
- Recombined 4 regimes into one program.
Final simplification8.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -1.55020281846411 \cdot 10^{+144}:\\
\;\;\;\;\frac{c}{(-2 \cdot b_2 + \left(\left(c \cdot a\right) \cdot \frac{\frac{1}{2}}{b_2}\right))_*}\\
\mathbf{elif}\;b_2 \le -3.0257364350404464 \cdot 10^{-307}:\\
\;\;\;\;\frac{\frac{c}{\sqrt{\sqrt{b_2 \cdot b_2 - c \cdot a} - b_2}}}{\sqrt{\sqrt{b_2 \cdot b_2 - c \cdot a} - b_2}}\\
\mathbf{elif}\;b_2 \le 5.523479422929744 \cdot 10^{+47}:\\
\;\;\;\;\frac{\left(-b_2\right) - \sqrt{(b_2 \cdot b_2 + \left(\left(-c\right) \cdot a\right))_*}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{b_2}{a} \cdot -2\\
\end{array}\]