- Split input into 3 regimes
if b_2 < -4.43130813824076946e86
Initial program 44.4
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified44.4
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
Taylor expanded around -inf 10.4
\[\leadsto \frac{\color{blue}{\frac{1}{2} \cdot \frac{a \cdot c}{b_2} - 2 \cdot b_2}}{a}\]
Simplified4.3
\[\leadsto \frac{\color{blue}{a \cdot \left(c \cdot \frac{\frac{1}{2}}{b_2}\right) + b_2 \cdot -2}}{a}\]
if -4.43130813824076946e86 < b_2 < 4.4378498285549336e-64
Initial program 13.5
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified13.5
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
- Using strategy
rm Applied clear-num13.6
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}\]
- Using strategy
rm Applied div-inv13.6
\[\leadsto \frac{1}{\color{blue}{a \cdot \frac{1}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}\]
Applied associate-/r*13.6
\[\leadsto \color{blue}{\frac{\frac{1}{a}}{\frac{1}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}\]
if 4.4378498285549336e-64 < b_2
Initial program 53.3
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified53.3
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
Taylor expanded around inf 8.9
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b_2}}\]
Simplified9.0
\[\leadsto \color{blue}{c \cdot \frac{\frac{-1}{2}}{b_2}}\]
- Recombined 3 regimes into one program.
Final simplification10.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -4.43130813824076946 \cdot 10^{86}:\\
\;\;\;\;\frac{a \cdot \left(c \cdot \frac{\frac{1}{2}}{b_2}\right) + b_2 \cdot -2}{a}\\
\mathbf{elif}\;b_2 \le 4.4378498285549336 \cdot 10^{-64}:\\
\;\;\;\;\frac{\frac{1}{a}}{\frac{1}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}\\
\mathbf{else}:\\
\;\;\;\;c \cdot \frac{\frac{-1}{2}}{b_2}\\
\end{array}\]