- Split input into 4 regimes
if b_2 < -9.400267889437694e+153
Initial program 60.8
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified60.8
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
Taylor expanded around -inf 9.8
\[\leadsto \frac{\color{blue}{\frac{1}{2} \cdot \frac{a \cdot c}{b_2} - 2 \cdot b_2}}{a}\]
Simplified1.7
\[\leadsto \frac{\color{blue}{(\frac{1}{2} \cdot \left(\frac{a}{\frac{b_2}{c}}\right) + \left(-2 \cdot b_2\right))_*}}{a}\]
if -9.400267889437694e+153 < b_2 < 5.74603165710677e-179
Initial program 9.5
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified9.5
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
if 5.74603165710677e-179 < b_2 < 6.040618413936409e+135
Initial program 38.8
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified38.8
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
- Using strategy
rm Applied clear-num38.8
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}\]
- Using strategy
rm Applied flip--38.9
\[\leadsto \frac{1}{\frac{a}{\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}}}}\]
Applied associate-/r/38.9
\[\leadsto \frac{1}{\color{blue}{\frac{a}{\sqrt{b_2 \cdot b_2 - a \cdot c} \cdot \sqrt{b_2 \cdot b_2 - a \cdot c} - b_2 \cdot b_2} \cdot \left(\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2\right)}}\]
Applied add-cube-cbrt38.9
\[\leadsto \frac{\color{blue}{\left(\sqrt[3]{1} \cdot \sqrt[3]{1}\right) \cdot \sqrt[3]{1}}}{\frac{a}{\sqrt{b_2 \cdot b_2 - a \cdot c} \cdot \sqrt{b_2 \cdot b_2 - a \cdot c} - b_2 \cdot b_2} \cdot \left(\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2\right)}\]
Applied times-frac38.9
\[\leadsto \color{blue}{\frac{\sqrt[3]{1} \cdot \sqrt[3]{1}}{\frac{a}{\sqrt{b_2 \cdot b_2 - a \cdot c} \cdot \sqrt{b_2 \cdot b_2 - a \cdot c} - b_2 \cdot b_2}} \cdot \frac{\sqrt[3]{1}}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}}\]
Simplified13.6
\[\leadsto \color{blue}{\frac{0 - a \cdot c}{a}} \cdot \frac{\sqrt[3]{1}}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}\]
Simplified13.6
\[\leadsto \frac{0 - a \cdot c}{a} \cdot \color{blue}{\frac{1}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}}\]
Taylor expanded around -inf 6.0
\[\leadsto \color{blue}{\left(-1 \cdot c\right)} \cdot \frac{1}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}\]
Simplified6.0
\[\leadsto \color{blue}{\left(-c\right)} \cdot \frac{1}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}\]
- Using strategy
rm Applied distribute-lft-neg-out6.0
\[\leadsto \color{blue}{-c \cdot \frac{1}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}}\]
Simplified5.9
\[\leadsto -\color{blue}{\frac{c}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}}\]
if 6.040618413936409e+135 < b_2
Initial program 61.1
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified61.1
\[\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 simplification6.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -9.400267889437694 \cdot 10^{+153}:\\
\;\;\;\;\frac{(\frac{1}{2} \cdot \left(\frac{a}{\frac{b_2}{c}}\right) + \left(b_2 \cdot -2\right))_*}{a}\\
\mathbf{elif}\;b_2 \le 5.74603165710677 \cdot 10^{-179}:\\
\;\;\;\;\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\\
\mathbf{elif}\;b_2 \le 6.040618413936409 \cdot 10^{+135}:\\
\;\;\;\;\frac{-c}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\end{array}\]