- Split input into 4 regimes
if b_2 < -1.9043593287864955e+87
Initial program 57.6
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around -inf 41.4
\[\leadsto \frac{\left(-b_2\right) - \color{blue}{\left(\frac{1}{2} \cdot \frac{a \cdot c}{b_2} - b_2\right)}}{a}\]
Applied simplify2.5
\[\leadsto \color{blue}{\left(-1\right) \cdot \frac{c}{\frac{b_2}{\frac{1}{2}}}}\]
if -1.9043593287864955e+87 < b_2 < -1.4312929690958086e-190
Initial program 35.4
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied flip--35.5
\[\leadsto \frac{\color{blue}{\frac{\left(-b_2\right) \cdot \left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c} \cdot \sqrt{b_2 \cdot b_2 - a \cdot c}}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{a}\]
Applied simplify15.9
\[\leadsto \frac{\frac{\color{blue}{a \cdot c}}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}\]
Applied simplify15.9
\[\leadsto \frac{\frac{a \cdot c}{\color{blue}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}{a}\]
if -1.4312929690958086e-190 < b_2 < 2.696518439055105e+143
Initial program 9.9
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied clear-num10.0
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}}\]
if 2.696518439055105e+143 < b_2
Initial program 56.7
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 9.5
\[\leadsto \frac{\color{blue}{\frac{1}{2} \cdot \frac{a \cdot c}{b_2} - 2 \cdot b_2}}{a}\]
Applied simplify1.7
\[\leadsto \color{blue}{\frac{\frac{1}{2} \cdot c}{b_2} - 2 \cdot \frac{b_2}{a}}\]
- Recombined 4 regimes into one program.
Applied simplify8.5
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b_2 \le -1.9043593287864955 \cdot 10^{+87}:\\
\;\;\;\;\frac{-c}{\frac{b_2}{\frac{1}{2}}}\\
\mathbf{if}\;b_2 \le -1.4312929690958086 \cdot 10^{-190}:\\
\;\;\;\;\frac{\frac{a \cdot c}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}{a}\\
\mathbf{if}\;b_2 \le 2.696518439055105 \cdot 10^{+143}:\\
\;\;\;\;\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c \cdot \frac{1}{2}}{b_2} - \frac{b_2}{a} \cdot 2\\
\end{array}}\]