\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \leq -7.356693308942923 \cdot 10^{+89}:\\
\;\;\;\;-0.5 \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \leq -3.205290969087756 \cdot 10^{-292}:\\
\;\;\;\;\frac{1}{\frac{\sqrt{b_2 \cdot b_2 - c \cdot a} - b_2}{c}}\\
\mathbf{elif}\;b_2 \leq 7.059358784344947 \cdot 10^{+133}:\\
\;\;\;\;\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - c \cdot a}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b_2} \cdot 0.5 + \frac{b_2}{a} \cdot -2\\
\end{array}double code(double a, double b_2, double c) {
return (((double) (((double) -(b_2)) - ((double) sqrt(((double) (((double) (b_2 * b_2)) - ((double) (a * c)))))))) / a);
}
double code(double a, double b_2, double c) {
double VAR;
if ((b_2 <= -7.356693308942923e+89)) {
VAR = ((double) (-0.5 * (c / b_2)));
} else {
double VAR_1;
if ((b_2 <= -3.205290969087756e-292)) {
VAR_1 = (1.0 / (((double) (((double) sqrt(((double) (((double) (b_2 * b_2)) - ((double) (c * a)))))) - b_2)) / c));
} else {
double VAR_2;
if ((b_2 <= 7.059358784344947e+133)) {
VAR_2 = (1.0 / (a / ((double) (((double) -(b_2)) - ((double) sqrt(((double) (((double) (b_2 * b_2)) - ((double) (c * a))))))))));
} else {
VAR_2 = ((double) (((double) ((c / b_2) * 0.5)) + ((double) ((b_2 / a) * -2.0))));
}
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 < -7.35669330894292303e89Initial program 59.1
Taylor expanded around -inf 2.8
if -7.35669330894292303e89 < b_2 < -3.2052909690877559e-292Initial program 33.1
rmApplied flip--33.2
Simplified17.3
Simplified17.3
rmApplied clear-num17.5
Simplified9.3
if -3.2052909690877559e-292 < b_2 < 7.05935878434494699e133Initial program 9.4
rmApplied clear-num9.5
if 7.05935878434494699e133 < b_2 Initial program 57.2
Taylor expanded around inf 2.7
Simplified2.7
Final simplification7.0
herbie shell --seed 2020198
(FPCore (a b_2 c)
:name "quad2m (problem 3.2.1, negative)"
:precision binary64
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))