- Split input into 4 regimes
if b/2 < -7.4879848656982e+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.4879848656982e+67 < b/2 < 5.273929256393366e-124
Initial program 11.5
\[\frac{\left(-b/2\right) + \sqrt{b/2 \cdot b/2 - a \cdot c}}{a}\]
- Using strategy
rm Applied clear-num11.6
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\left(-b/2\right) + \sqrt{b/2 \cdot b/2 - a \cdot c}}}}\]
if 5.273929256393366e-124 < b/2 < 6.888041708131047e+46
Initial program 37.6
\[\frac{\left(-b/2\right) + \sqrt{b/2 \cdot b/2 - a \cdot c}}{a}\]
- Using strategy
rm Applied flip-+37.7
\[\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 6.888041708131047e+46 < 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.6
\[\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.5
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b/2 \le -7.4879848656982 \cdot 10^{+67}:\\
\;\;\;\;c \cdot \frac{\frac{1}{2}}{b/2} - \frac{b/2 + b/2}{a}\\
\mathbf{if}\;b/2 \le 5.273929256393366 \cdot 10^{-124}:\\
\;\;\;\;\frac{\left(-b/2\right) + \sqrt{b/2 \cdot b/2 - a \cdot c}}{a}\\
\mathbf{if}\;b/2 \le 6.888041708131047 \cdot 10^{+46}:\\
\;\;\;\;\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}}\]