\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \leq -9.503260830921614 \cdot 10^{+153}:\\
\;\;\;\;-0.5 \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \leq 5.910068292844364 \cdot 10^{-217}:\\
\;\;\;\;\frac{c}{\sqrt{b_2 \cdot b_2 - c \cdot a} - b_2}\\
\mathbf{elif}\;b_2 \leq 7.216218674231209 \cdot 10^{+64}:\\
\;\;\;\;\left(b_2 + \sqrt{b_2 \cdot b_2 - c \cdot a}\right) \cdot \frac{-1}{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 <= -9.503260830921614e+153)) {
VAR = ((double) (-0.5 * (c / b_2)));
} else {
double VAR_1;
if ((b_2 <= 5.910068292844364e-217)) {
VAR_1 = (c / ((double) (((double) sqrt(((double) (((double) (b_2 * b_2)) - ((double) (c * a)))))) - b_2)));
} else {
double VAR_2;
if ((b_2 <= 7.216218674231209e+64)) {
VAR_2 = ((double) (((double) (b_2 + ((double) sqrt(((double) (((double) (b_2 * b_2)) - ((double) (c * a)))))))) * (-1.0 / 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 < -9.50326083092161403e153Initial program 64.0
Taylor expanded around -inf 1.8
if -9.50326083092161403e153 < b_2 < 5.910068292844364e-217Initial program 31.5
rmApplied flip--31.6
Simplified15.4
Simplified15.4
rmApplied *-un-lft-identity15.4
Applied *-un-lft-identity15.4
Applied times-frac15.4
Simplified15.4
Simplified9.1
if 5.910068292844364e-217 < b_2 < 7.21621867423120896e64Initial program 8.0
rmApplied div-inv8.2
if 7.21621867423120896e64 < b_2 Initial program 41.3
Taylor expanded around inf 5.4
Simplified5.4
Final simplification6.9
herbie shell --seed 2020196
(FPCore (a b_2 c)
:name "quad2m (problem 3.2.1, negative)"
:precision binary64
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))