- Split input into 4 regimes
if b_2 < -1.4748699412762502e+80
Initial program 40.9
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Initial simplification40.9
\[\leadsto \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\]
Taylor expanded around -inf 4.0
\[\leadsto \color{blue}{-2 \cdot \frac{b_2}{a}}\]
if -1.4748699412762502e+80 < b_2 < -5.73568019437528e-290
Initial program 9.5
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Initial simplification9.5
\[\leadsto \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\]
- Using strategy
rm Applied add-sqr-sqrt9.9
\[\leadsto \frac{\color{blue}{\sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2} \cdot \sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}{a}\]
Applied associate-/l*9.9
\[\leadsto \color{blue}{\frac{\sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}{\frac{a}{\sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}}\]
if -5.73568019437528e-290 < b_2 < 1.9492786133970534e+82
Initial program 31.5
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Initial simplification31.5
\[\leadsto \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\]
- Using strategy
rm Applied flip--31.6
\[\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/36.1
\[\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)}}\]
Simplified22.0
\[\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 associate-/r*16.7
\[\leadsto \color{blue}{\frac{\frac{-a \cdot c}{a}}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}}\]
if 1.9492786133970534e+82 < b_2
Initial program 57.8
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Initial simplification57.8
\[\leadsto \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\]
- Using strategy
rm Applied flip--57.8
\[\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/58.1
\[\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)}}\]
Simplified30.5
\[\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-neg30.5
\[\leadsto \color{blue}{-\frac{a \cdot c}{a \cdot \left(\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2\right)}}\]
Simplified27.6
\[\leadsto -\color{blue}{\frac{c}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}\]
Taylor expanded around inf 7.6
\[\leadsto -\frac{c}{b_2 + \color{blue}{\left(b_2 - \frac{1}{2} \cdot \frac{a \cdot c}{b_2}\right)}}\]
- Recombined 4 regimes into one program.
Final simplification10.3
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -1.4748699412762502 \cdot 10^{+80}:\\
\;\;\;\;-2 \cdot \frac{b_2}{a}\\
\mathbf{elif}\;b_2 \le -5.73568019437528 \cdot 10^{-290}:\\
\;\;\;\;\frac{\sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}{\frac{a}{\sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}\\
\mathbf{elif}\;b_2 \le 1.9492786133970534 \cdot 10^{+82}:\\
\;\;\;\;\frac{-\frac{a \cdot c}{a}}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}\\
\mathbf{else}:\\
\;\;\;\;\frac{-c}{\left(b_2 - \frac{1}{2} \cdot \frac{a \cdot c}{b_2}\right) + b_2}\\
\end{array}\]