- Split input into 4 regimes
if b/2 < -7.728783917565007e+67
Initial program 40.0
\[\frac{\left(-b/2\right) + \sqrt{b/2 \cdot b/2 - a \cdot c}}{a}\]
- Using strategy
rm Applied div-inv40.1
\[\leadsto \color{blue}{\left(\left(-b/2\right) + \sqrt{b/2 \cdot b/2 - a \cdot c}\right) \cdot \frac{1}{a}}\]
Taylor expanded around -inf 10.4
\[\leadsto \color{blue}{\left(\frac{1}{2} \cdot \frac{c \cdot a}{b/2} - 2 \cdot b/2\right)} \cdot \frac{1}{a}\]
Applied simplify5.1
\[\leadsto \color{blue}{\frac{\frac{\frac{1}{2} \cdot c}{\frac{b/2}{a}} - \left(b/2 + b/2\right)}{a}}\]
if -7.728783917565007e+67 < b/2 < 8.216438213253527e-127
Initial program 11.4
\[\frac{\left(-b/2\right) + \sqrt{b/2 \cdot b/2 - a \cdot c}}{a}\]
- Using strategy
rm Applied clear-num11.5
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\left(-b/2\right) + \sqrt{b/2 \cdot b/2 - a \cdot c}}}}\]
if 8.216438213253527e-127 < b/2 < 1.4432083932442931e+47
Initial program 37.4
\[\frac{\left(-b/2\right) + \sqrt{b/2 \cdot b/2 - a \cdot c}}{a}\]
- Using strategy
rm Applied flip-+37.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 simplify16.0
\[\leadsto \frac{\frac{\color{blue}{c \cdot a}}{\left(-b/2\right) - \sqrt{b/2 \cdot b/2 - a \cdot c}}}{a}\]
if 1.4432083932442931e+47 < b/2
Initial program 55.9
\[\frac{\left(-b/2\right) + \sqrt{b/2 \cdot b/2 - a \cdot c}}{a}\]
Taylor expanded around inf 42.5
\[\leadsto \frac{\left(-b/2\right) + \color{blue}{\left(b/2 - \frac{1}{2} \cdot \frac{c \cdot a}{b/2}\right)}}{a}\]
Applied simplify4.0
\[\leadsto \color{blue}{\frac{\left(-b/2\right) + b/2}{a} - \frac{c}{b/2} \cdot \frac{1}{2}}\]
- Recombined 4 regimes into one program.
- Removed slow
pow expressions. Applied simplify7.4
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b/2 \le -7.728783917565007 \cdot 10^{+67}:\\
\;\;\;\;c \cdot \frac{\frac{1}{2}}{b/2} - \frac{b/2 + b/2}{a}\\
\mathbf{if}\;b/2 \le 8.216438213253527 \cdot 10^{-127}:\\
\;\;\;\;\frac{\left(-b/2\right) + \sqrt{b/2 \cdot b/2 - a \cdot c}}{a}\\
\mathbf{if}\;b/2 \le 1.4432083932442931 \cdot 10^{+47}:\\
\;\;\;\;\frac{c}{\left(-b/2\right) - \sqrt{b/2 \cdot b/2 - a \cdot c}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(-b/2\right) + b/2}{a} - c \cdot \frac{\frac{1}{2}}{b/2}\\
\end{array}}\]