\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \le -8.626773201174524 \cdot 10^{102}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le -4.42774749682144966 \cdot 10^{-220}:\\
\;\;\;\;\frac{\frac{1}{\sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}{\frac{1}{c} \cdot \sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}\\
\mathbf{elif}\;b_2 \le 1.6275304582996679 \cdot 10^{99}:\\
\;\;\;\;\frac{-b_2}{a} - \frac{\sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{2} \cdot \frac{c}{b_2} - 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 temp;
if ((b_2 <= -8.626773201174524e+102)) {
temp = (-0.5 * (c / b_2));
} else {
double temp_1;
if ((b_2 <= -4.42774749682145e-220)) {
temp_1 = ((1.0 / sqrt((sqrt(((b_2 * b_2) - (a * c))) - b_2))) / ((1.0 / c) * sqrt((sqrt(((b_2 * b_2) - (a * c))) - b_2))));
} else {
double temp_2;
if ((b_2 <= 1.627530458299668e+99)) {
temp_2 = ((-b_2 / a) - (sqrt(((b_2 * b_2) - (a * c))) / a));
} else {
temp_2 = ((0.5 * (c / b_2)) - (2.0 * (b_2 / a)));
}
temp_1 = temp_2;
}
temp = temp_1;
}
return temp;
}



Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -8.626773201174524e+102Initial program 59.4
Taylor expanded around -inf 2.4
if -8.626773201174524e+102 < b_2 < -4.42774749682145e-220Initial program 36.2
rmApplied flip--36.3
Simplified16.7
Simplified16.7
rmApplied add-sqr-sqrt16.9
Applied *-un-lft-identity16.9
Applied times-frac16.9
Applied associate-/l*16.3
Simplified15.7
rmApplied clear-num15.6
Simplified7.7
if -4.42774749682145e-220 < b_2 < 1.627530458299668e+99Initial program 10.3
rmApplied div-sub10.4
if 1.627530458299668e+99 < b_2 Initial program 46.8
Taylor expanded around inf 3.7
Final simplification6.8
herbie shell --seed 2020060
(FPCore (a b_2 c)
:name "quad2m (problem 3.2.1, negative)"
:precision binary64
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))