- Split input into 4 regimes
if b_2 < -1.01384800159969898e70
Initial program 41.1
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified41.1
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
Taylor expanded around -inf 11.5
\[\leadsto \frac{\color{blue}{\left(\frac{1}{2} \cdot \frac{a \cdot c}{b_2} - b_2\right)} - b_2}{a}\]
Simplified5.1
\[\leadsto \frac{\color{blue}{\left(\frac{1}{2} \cdot \left(c \cdot \frac{a}{b_2}\right) - b_2\right)} - b_2}{a}\]
if -1.01384800159969898e70 < b_2 < -1.5056723658874731e-296
Initial program 9.7
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified9.7
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
- Using strategy
rm Applied clear-num9.8
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}\]
if -1.5056723658874731e-296 < b_2 < 3.9588277603203294e102
Initial program 32.0
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified32.0
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
- Using strategy
rm Applied flip--32.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}\]
Simplified16.3
\[\leadsto \frac{\frac{\color{blue}{0 - a \cdot c}}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}}{a}\]
Simplified16.3
\[\leadsto \frac{\frac{0 - a \cdot c}{\color{blue}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{a}\]
- Using strategy
rm Applied sub0-neg16.3
\[\leadsto \frac{\frac{\color{blue}{-a \cdot c}}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}\]
Applied distribute-frac-neg16.3
\[\leadsto \frac{\color{blue}{-\frac{a \cdot c}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{a}\]
Applied distribute-frac-neg16.3
\[\leadsto \color{blue}{-\frac{\frac{a \cdot c}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}}\]
Simplified8.9
\[\leadsto -\color{blue}{1 \cdot \frac{c}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}\]
if 3.9588277603203294e102 < b_2
Initial program 59.5
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified59.5
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
Taylor expanded around inf 2.7
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b_2}}\]
- Recombined 4 regimes into one program.
Final simplification7.0
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -1.01384800159969898 \cdot 10^{70}:\\
\;\;\;\;\frac{\left(\frac{1}{2} \cdot \left(c \cdot \frac{a}{b_2}\right) - b_2\right) - b_2}{a}\\
\mathbf{elif}\;b_2 \le -1.5056723658874731 \cdot 10^{-296}:\\
\;\;\;\;\frac{1}{\frac{a}{\sqrt{b_2 \cdot b_2 - c \cdot a} - b_2}}\\
\mathbf{elif}\;b_2 \le 3.9588277603203294 \cdot 10^{102}:\\
\;\;\;\;\frac{-c}{b_2 + \sqrt{b_2 \cdot b_2 - c \cdot a}}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\end{array}\]