- Split input into 4 regimes
if b_2 < -1.887155650852303e94
Initial program 45.7
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified45.7
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
- Using strategy
rm Applied div-inv45.8
\[\leadsto \color{blue}{\left(\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2\right) \cdot \frac{1}{a}}\]
Taylor expanded around -inf 3.9
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b_2} - 2 \cdot \frac{b_2}{a}}\]
Simplified3.9
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b_2} + \frac{b_2}{a} \cdot -2}\]
if -1.887155650852303e94 < b_2 < -2.0531844483893699e-250
Initial program 9.2
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified9.2
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
- Using strategy
rm Applied div-inv9.4
\[\leadsto \color{blue}{\left(\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2\right) \cdot \frac{1}{a}}\]
if -2.0531844483893699e-250 < b_2 < 3.15077727037589584e109
Initial program 30.6
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified30.6
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
- Using strategy
rm Applied div-inv30.6
\[\leadsto \color{blue}{\left(\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2\right) \cdot \frac{1}{a}}\]
- Using strategy
rm Applied flip--30.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}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}} \cdot \frac{1}{a}\]
Applied associate-*l/30.7
\[\leadsto \color{blue}{\frac{\left(\sqrt{b_2 \cdot b_2 - a \cdot c} \cdot \sqrt{b_2 \cdot b_2 - a \cdot c} - b_2 \cdot b_2\right) \cdot \frac{1}{a}}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}}\]
Simplified15.7
\[\leadsto \frac{\color{blue}{\frac{a \cdot \left(-c\right)}{a}}}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}\]
- Using strategy
rm Applied distribute-rgt-neg-out15.7
\[\leadsto \frac{\frac{\color{blue}{-a \cdot c}}{a}}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}\]
Applied distribute-frac-neg15.7
\[\leadsto \frac{\color{blue}{-\frac{a \cdot c}{a}}}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}\]
Simplified10.0
\[\leadsto \frac{-\color{blue}{c}}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}\]
if 3.15077727037589584e109 < b_2
Initial program 59.7
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified59.7
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
Taylor expanded around inf 2.0
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b_2}}\]
- Recombined 4 regimes into one program.
Final simplification7.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -1.887155650852303 \cdot 10^{94}:\\
\;\;\;\;\frac{1}{2} \cdot \frac{c}{b_2} + \frac{b_2}{a} \cdot -2\\
\mathbf{elif}\;b_2 \le -2.0531844483893699 \cdot 10^{-250}:\\
\;\;\;\;\left(\sqrt{b_2 \cdot b_2 - c \cdot a} - b_2\right) \cdot \frac{1}{a}\\
\mathbf{elif}\;b_2 \le 3.15077727037589584 \cdot 10^{109}:\\
\;\;\;\;\frac{-c}{b_2 + \sqrt{b_2 \cdot b_2 - c \cdot a}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b_2} \cdot \frac{-1}{2}\\
\end{array}\]