- Split input into 4 regimes
if b < -6.84505468325951721e108
Initial program 49.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 3.2
\[\leadsto \color{blue}{0.5 \cdot \frac{c}{b} - 0.6666666666666666 \cdot \frac{b}{a}}\]
Simplified3.2
\[\leadsto \color{blue}{\frac{c}{b} \cdot 0.5 - 0.6666666666666666 \cdot \frac{b}{a}}\]
if -6.84505468325951721e108 < b < -2.33447825683009239e-237
Initial program 8.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied add-sqr-sqrt8.5
\[\leadsto \frac{\color{blue}{\sqrt{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}} \cdot \sqrt{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}{3 \cdot a}\]
Applied associate-/l*8.5
\[\leadsto \color{blue}{\frac{\sqrt{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{\frac{3 \cdot a}{\sqrt{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}}\]
Simplified8.5
\[\leadsto \frac{\sqrt{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{\color{blue}{a \cdot \frac{3}{\sqrt{\sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)} - b}}}}\]
if -2.33447825683009239e-237 < b < 1.100584786088886e102
Initial program 31.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied flip-+31.8
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}{3 \cdot a}\]
Simplified16.6
\[\leadsto \frac{\frac{\color{blue}{3 \cdot \left(a \cdot c\right)}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{3 \cdot a}\]
Simplified16.5
\[\leadsto \frac{\frac{3 \cdot \left(a \cdot c\right)}{\color{blue}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}}{3 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity16.5
\[\leadsto \frac{\frac{3 \cdot \left(a \cdot c\right)}{\color{blue}{1 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}\right)}}}{3 \cdot a}\]
Applied times-frac16.6
\[\leadsto \frac{\color{blue}{\frac{3}{1} \cdot \frac{a \cdot c}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}}{3 \cdot a}\]
Applied times-frac16.5
\[\leadsto \color{blue}{\frac{\frac{3}{1}}{3} \cdot \frac{\frac{a \cdot c}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{a}}\]
Simplified16.5
\[\leadsto \color{blue}{1} \cdot \frac{\frac{a \cdot c}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{a}\]
Simplified9.5
\[\leadsto 1 \cdot \color{blue}{\left(1 \cdot \frac{c}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}\right)}\]
- Using strategy
rm Applied add-cube-cbrt9.5
\[\leadsto 1 \cdot \left(1 \cdot \frac{c}{\left(-b\right) - \sqrt{b \cdot b - \color{blue}{\left(\left(\sqrt[3]{3} \cdot \sqrt[3]{3}\right) \cdot \sqrt[3]{3}\right)} \cdot \left(a \cdot c\right)}}\right)\]
Applied associate-*l*9.5
\[\leadsto 1 \cdot \left(1 \cdot \frac{c}{\left(-b\right) - \sqrt{b \cdot b - \color{blue}{\left(\sqrt[3]{3} \cdot \sqrt[3]{3}\right) \cdot \left(\sqrt[3]{3} \cdot \left(a \cdot c\right)\right)}}}\right)\]
Simplified9.5
\[\leadsto 1 \cdot \left(1 \cdot \frac{c}{\left(-b\right) - \sqrt{b \cdot b - \left(\sqrt[3]{3} \cdot \sqrt[3]{3}\right) \cdot \color{blue}{\left(a \cdot \left(c \cdot \sqrt[3]{3}\right)\right)}}}\right)\]
if 1.100584786088886e102 < b
Initial program 59.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied flip-+59.6
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}{3 \cdot a}\]
Simplified32.1
\[\leadsto \frac{\frac{\color{blue}{3 \cdot \left(a \cdot c\right)}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{3 \cdot a}\]
Simplified32.1
\[\leadsto \frac{\frac{3 \cdot \left(a \cdot c\right)}{\color{blue}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}}{3 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity32.1
\[\leadsto \frac{\frac{3 \cdot \left(a \cdot c\right)}{\color{blue}{1 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}\right)}}}{3 \cdot a}\]
Applied times-frac32.1
\[\leadsto \frac{\color{blue}{\frac{3}{1} \cdot \frac{a \cdot c}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}}{3 \cdot a}\]
Applied times-frac32.1
\[\leadsto \color{blue}{\frac{\frac{3}{1}}{3} \cdot \frac{\frac{a \cdot c}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{a}}\]
Simplified32.1
\[\leadsto \color{blue}{1} \cdot \frac{\frac{a \cdot c}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{a}\]
Simplified29.9
\[\leadsto 1 \cdot \color{blue}{\left(1 \cdot \frac{c}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}\right)}\]
Taylor expanded around inf 6.6
\[\leadsto 1 \cdot \left(1 \cdot \frac{c}{\color{blue}{1.5 \cdot \frac{a \cdot c}{b} - 2 \cdot b}}\right)\]
Simplified2.3
\[\leadsto 1 \cdot \left(1 \cdot \frac{c}{\color{blue}{1.5 \cdot \left(c \cdot \frac{a}{b}\right) + b \cdot -2}}\right)\]
- Recombined 4 regimes into one program.
Final simplification6.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \leq -6.845054683259517 \cdot 10^{+108}:\\
\;\;\;\;\frac{c}{b} \cdot 0.5 - 0.6666666666666666 \cdot \frac{b}{a}\\
\mathbf{elif}\;b \leq -2.3344782568300924 \cdot 10^{-237}:\\
\;\;\;\;\frac{\sqrt{\sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)} - b}}{a \cdot \frac{3}{\sqrt{\sqrt{b \cdot b - 3 \cdot \left(c \cdot a\right)} - b}}}\\
\mathbf{elif}\;b \leq 1.100584786088886 \cdot 10^{+102}:\\
\;\;\;\;\frac{c}{\left(-b\right) - \sqrt{b \cdot b - \left(\sqrt[3]{3} \cdot \sqrt[3]{3}\right) \cdot \left(a \cdot \left(c \cdot \sqrt[3]{3}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{1.5 \cdot \left(c \cdot \frac{a}{b}\right) + b \cdot -2}\\
\end{array}\]