- Split input into 4 regimes
if b_2 < -3.819497819135284e+153
Initial program 60.5
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Initial simplification60.5
\[\leadsto \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\]
- Using strategy
rm Applied fma-neg60.5
\[\leadsto \frac{\sqrt{\color{blue}{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}} - b_2}{a}\]
Taylor expanded around -inf 2.2
\[\leadsto \color{blue}{-2 \cdot \frac{b_2}{a}}\]
if -3.819497819135284e+153 < b_2 < -7.597049051112231e-299
Initial program 9.2
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Initial simplification9.2
\[\leadsto \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\]
- Using strategy
rm Applied fma-neg9.2
\[\leadsto \frac{\sqrt{\color{blue}{(b_2 \cdot b_2 + \left(-a \cdot c\right))_*}} - b_2}{a}\]
if -7.597049051112231e-299 < b_2 < 1.9814699145958919e+136
Initial program 33.9
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Initial simplification33.9
\[\leadsto \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\]
- Using strategy
rm Applied flip--34.0
\[\leadsto \frac{\color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} \cdot \sqrt{b_2 \cdot b_2 - a \cdot c} - b_2 \cdot b_2}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}}}{a}\]
Applied associate-/l/37.6
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} \cdot \sqrt{b_2 \cdot b_2 - a \cdot c} - b_2 \cdot b_2}{a \cdot \left(\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2\right)}}\]
Simplified19.2
\[\leadsto \frac{\color{blue}{-a \cdot c}}{a \cdot \left(\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2\right)}\]
- Using strategy
rm Applied distribute-frac-neg19.2
\[\leadsto \color{blue}{-\frac{a \cdot c}{a \cdot \left(\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2\right)}}\]
Simplified8.3
\[\leadsto -\color{blue}{\frac{c}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}\]
if 1.9814699145958919e+136 < b_2
Initial program 61.1
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Initial simplification61.1
\[\leadsto \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\]
Taylor expanded around inf 14.3
\[\leadsto \frac{\color{blue}{\frac{-1}{2} \cdot \frac{a \cdot c}{b_2}}}{a}\]
- Recombined 4 regimes into one program.
Final simplification9.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -3.819497819135284 \cdot 10^{+153}:\\
\;\;\;\;-2 \cdot \frac{b_2}{a}\\
\mathbf{elif}\;b_2 \le -7.597049051112231 \cdot 10^{-299}:\\
\;\;\;\;\frac{\sqrt{(b_2 \cdot b_2 + \left(\left(-c\right) \cdot a\right))_*} - b_2}{a}\\
\mathbf{elif}\;b_2 \le 1.9814699145958919 \cdot 10^{+136}:\\
\;\;\;\;\frac{-c}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-1}{2} \cdot \frac{a \cdot c}{b_2}}{a}\\
\end{array}\]