\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \le -1.60254369165666142 \cdot 10^{59}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le -6.4658143772560903 \cdot 10^{-105}:\\
\;\;\;\;\frac{\sqrt[3]{\frac{1}{a}} \cdot \sqrt[3]{\frac{1}{a}}}{\frac{\frac{1}{\frac{0 + a \cdot c}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}{\sqrt[3]{\frac{1}{a}}}}\\
\mathbf{elif}\;b_2 \le 3.1827258823065575 \cdot 10^{65}:\\
\;\;\;\;\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \frac{b_2}{a}\\
\end{array}double code(double a, double b_2, double c) {
return ((-b_2 - sqrt(((b_2 * b_2) - (a * c)))) / a);
}
double code(double a, double b_2, double c) {
double VAR;
if ((b_2 <= -1.6025436916566614e+59)) {
VAR = (-0.5 * (c / b_2));
} else {
double VAR_1;
if ((b_2 <= -6.46581437725609e-105)) {
VAR_1 = ((cbrt((1.0 / a)) * cbrt((1.0 / a))) / ((1.0 / ((0.0 + (a * c)) / (sqrt(((b_2 * b_2) - (a * c))) - b_2))) / cbrt((1.0 / a))));
} else {
double VAR_2;
if ((b_2 <= 3.1827258823065575e+65)) {
VAR_2 = (1.0 / (a / (-b_2 - sqrt(((b_2 * b_2) - (a * c))))));
} else {
VAR_2 = (-2.0 * (b_2 / a));
}
VAR_1 = VAR_2;
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -1.6025436916566614e+59Initial program 57.4
Taylor expanded around -inf 3.8
if -1.6025436916566614e+59 < b_2 < -6.46581437725609e-105Initial program 39.7
rmApplied clear-num39.8
rmApplied div-inv39.8
Applied associate-/r*39.8
rmApplied add-cube-cbrt40.1
Applied associate-/l*40.1
rmApplied flip--40.1
Simplified15.8
Simplified15.8
if -6.46581437725609e-105 < b_2 < 3.1827258823065575e+65Initial program 12.4
rmApplied clear-num12.6
if 3.1827258823065575e+65 < b_2 Initial program 39.6
rmApplied clear-num39.7
Taylor expanded around 0 5.3
Final simplification9.3
herbie shell --seed 2020092 +o rules:numerics
(FPCore (a b_2 c)
:name "NMSE problem 3.2.1"
:precision binary64
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))