- Split input into 4 regimes
if b < -6.76223481168814e+153
Initial program 60.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification60.7
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
Taylor expanded around -inf 2.8
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Simplified2.8
\[\leadsto \color{blue}{\frac{-b}{a}}\]
if -6.76223481168814e+153 < b < -2.1097631082543147e-305
Initial program 8.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification8.7
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
- Using strategy
rm Applied clear-num8.9
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}}}\]
if -2.1097631082543147e-305 < b < 4.903777908804514e+154
Initial program 34.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification34.0
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
- Using strategy
rm Applied flip--34.1
\[\leadsto \frac{\color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} \cdot \sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b \cdot b}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}}}{2 \cdot a}\]
Applied associate-/l/38.1
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} \cdot \sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b \cdot b}{\left(2 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b\right)}}\]
Simplified19.4
\[\leadsto \frac{\color{blue}{\left(a \cdot 4\right) \cdot \left(-c\right)}}{\left(2 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b\right)}\]
- Using strategy
rm Applied times-frac8.2
\[\leadsto \color{blue}{\frac{a \cdot 4}{2 \cdot a} \cdot \frac{-c}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}}\]
Simplified8.2
\[\leadsto \color{blue}{\frac{4}{2}} \cdot \frac{-c}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}\]
if 4.903777908804514e+154 < b
Initial program 62.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification62.9
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
- Using strategy
rm Applied flip--62.9
\[\leadsto \frac{\color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} \cdot \sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b \cdot b}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}}}{2 \cdot a}\]
Applied associate-/l/62.9
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} \cdot \sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b \cdot b}{\left(2 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b\right)}}\]
Simplified38.4
\[\leadsto \frac{\color{blue}{\left(a \cdot 4\right) \cdot \left(-c\right)}}{\left(2 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b\right)}\]
- Using strategy
rm Applied times-frac38.3
\[\leadsto \color{blue}{\frac{a \cdot 4}{2 \cdot a} \cdot \frac{-c}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}}\]
Simplified38.3
\[\leadsto \color{blue}{\frac{4}{2}} \cdot \frac{-c}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}\]
- Using strategy
rm Applied clear-num38.3
\[\leadsto \frac{4}{2} \cdot \color{blue}{\frac{1}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}{-c}}}\]
Taylor expanded around inf 2.5
\[\leadsto \frac{4}{2} \cdot \frac{1}{\color{blue}{-2 \cdot \frac{b}{c}}}\]
- Recombined 4 regimes into one program.
Final simplification6.9
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -6.76223481168814 \cdot 10^{+153}:\\
\;\;\;\;-\frac{b}{a}\\
\mathbf{elif}\;b \le -2.1097631082543147 \cdot 10^{-305}:\\
\;\;\;\;\frac{1}{\frac{a \cdot 2}{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} - b}}\\
\mathbf{elif}\;b \le 4.903777908804514 \cdot 10^{+154}:\\
\;\;\;\;\frac{4}{2} \cdot \frac{-c}{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} + b}\\
\mathbf{else}:\\
\;\;\;\;\frac{4}{2} \cdot \frac{1}{\frac{b}{c} \cdot -2}\\
\end{array}\]