- Split input into 3 regimes
if b < -3.579252055600559e-75
Initial program 27.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 15.5
\[\leadsto \frac{\color{blue}{1.5 \cdot \frac{a \cdot c}{b} - 2 \cdot b}}{3 \cdot a}\]
if -3.579252055600559e-75 < b < 8.47915506480201e+53
Initial program 23.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied associate-*l*23.2
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \color{blue}{3 \cdot \left(a \cdot c\right)}}}{3 \cdot a}\]
- Using strategy
rm Applied flip-+26.5
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)} \cdot \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}}{3 \cdot a}\]
Simplified18.5
\[\leadsto \frac{\frac{\color{blue}{3 \cdot \left(a \cdot c\right)}}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{3 \cdot a}\]
- Using strategy
rm Applied *-commutative18.5
\[\leadsto \frac{\frac{3 \cdot \color{blue}{\left(c \cdot a\right)}}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{3 \cdot a}\]
Applied associate-*r*18.6
\[\leadsto \frac{\frac{\color{blue}{\left(3 \cdot c\right) \cdot a}}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{3 \cdot a}\]
Applied associate-/l*17.2
\[\leadsto \frac{\color{blue}{\frac{3 \cdot c}{\frac{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}{a}}}}{3 \cdot a}\]
Applied associate-/l/14.3
\[\leadsto \color{blue}{\frac{3 \cdot c}{\left(3 \cdot a\right) \cdot \frac{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}{a}}}\]
- Using strategy
rm Applied associate-*l*14.2
\[\leadsto \frac{3 \cdot c}{\color{blue}{3 \cdot \left(a \cdot \frac{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}{a}\right)}}\]
Applied times-frac14.0
\[\leadsto \color{blue}{\frac{3}{3} \cdot \frac{c}{a \cdot \frac{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}{a}}}\]
Simplified14.0
\[\leadsto \color{blue}{1} \cdot \frac{c}{a \cdot \frac{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}{a}}\]
if 8.47915506480201e+53 < b
Initial program 57.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied associate-*l*57.2
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \color{blue}{3 \cdot \left(a \cdot c\right)}}}{3 \cdot a}\]
- Using strategy
rm Applied flip-+57.2
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)} \cdot \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}}{3 \cdot a}\]
Simplified28.1
\[\leadsto \frac{\frac{\color{blue}{3 \cdot \left(a \cdot c\right)}}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{3 \cdot a}\]
- Using strategy
rm Applied *-commutative28.1
\[\leadsto \frac{\frac{3 \cdot \color{blue}{\left(c \cdot a\right)}}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{3 \cdot a}\]
Applied associate-*r*28.1
\[\leadsto \frac{\frac{\color{blue}{\left(3 \cdot c\right) \cdot a}}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{3 \cdot a}\]
Applied associate-/l*30.3
\[\leadsto \frac{\color{blue}{\frac{3 \cdot c}{\frac{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}{a}}}}{3 \cdot a}\]
Applied associate-/l/29.0
\[\leadsto \color{blue}{\frac{3 \cdot c}{\left(3 \cdot a\right) \cdot \frac{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}{a}}}\]
Taylor expanded around 0 3.8
\[\leadsto \frac{3 \cdot c}{\color{blue}{-6 \cdot b}}\]
- Recombined 3 regimes into one program.
Final simplification11.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -3.57925205560055901 \cdot 10^{-75}:\\
\;\;\;\;\frac{1.5 \cdot \frac{a \cdot c}{b} - 2 \cdot b}{3 \cdot a}\\
\mathbf{elif}\;b \le 8.47915506480201008 \cdot 10^{53}:\\
\;\;\;\;1 \cdot \frac{c}{a \cdot \frac{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}{a}}\\
\mathbf{else}:\\
\;\;\;\;\frac{3 \cdot c}{-6 \cdot b}\\
\end{array}\]