- Split input into 4 regimes
if b_2 < -4.5638780224706865e+87
Initial program 58.6
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around -inf 40.8
\[\leadsto \frac{\left(-b_2\right) - \color{blue}{\left(\frac{1}{2} \cdot \frac{c \cdot a}{b_2} - b_2\right)}}{a}\]
Applied simplify2.6
\[\leadsto \color{blue}{\frac{\left(-\frac{1}{2}\right) \cdot \frac{c}{b_2}}{1}}\]
if -4.5638780224706865e+87 < b_2 < -6.931717002458052e-119
Initial program 40.7
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied flip--40.8
\[\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.2
\[\leadsto \frac{\frac{\color{blue}{c \cdot a}}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}\]
Applied simplify15.2
\[\leadsto \frac{\frac{c \cdot a}{\color{blue}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}{a}\]
- Using strategy
rm Applied log1p-expm1-u32.7
\[\leadsto \color{blue}{\log_* (1 + (e^{\frac{\frac{c \cdot a}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}{a}} - 1)^*)}\]
Applied simplify23.2
\[\leadsto \log_* (1 + \color{blue}{(e^{\frac{c}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}} - 1)^*})\]
if -6.931717002458052e-119 < b_2 < 3.9117660587132156e+67
Initial program 11.6
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied clear-num11.8
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}}\]
if 3.9117660587132156e+67 < b_2
Initial program 38.3
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 10.2
\[\leadsto \frac{\color{blue}{\frac{1}{2} \cdot \frac{c \cdot a}{b_2} - 2 \cdot b_2}}{a}\]
Applied simplify5.1
\[\leadsto \color{blue}{\frac{c}{b_2} \cdot \frac{1}{2} - \frac{b_2}{a} \cdot 2}\]
- Recombined 4 regimes into one program.
Applied simplify10.3
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b_2 \le -4.5638780224706865 \cdot 10^{+87}:\\
\;\;\;\;\left(-\frac{1}{2}\right) \cdot \frac{c}{b_2}\\
\mathbf{if}\;b_2 \le -6.931717002458052 \cdot 10^{-119}:\\
\;\;\;\;\log_* (1 + (e^{\frac{c}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}} - 1)^*)\\
\mathbf{if}\;b_2 \le 3.9117660587132156 \cdot 10^{+67}:\\
\;\;\;\;\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{2} \cdot \frac{c}{b_2} - 2 \cdot \frac{b_2}{a}\\
\end{array}}\]