\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \leq -2.0155757731311035 \cdot 10^{+137}:\\
\;\;\;\;\frac{c}{\left(a \cdot \frac{0.5}{\frac{b_2}{c}} - b_2\right) - b_2}\\
\mathbf{elif}\;b_2 \leq 3.872731709600237 \cdot 10^{-232}:\\
\;\;\;\;\frac{c}{\sqrt{b_2 \cdot b_2 - c \cdot a} - b_2}\\
\mathbf{elif}\;b_2 \leq 1.9930311221408239 \cdot 10^{+59}:\\
\;\;\;\;\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - c \cdot a}}{a}\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{c}{b_2} + \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 <= -2.0155757731311035e+137)) {
VAR = (c / ((double) (((double) (((double) (a * (0.5 / (b_2 / c)))) - b_2)) - b_2)));
} else {
double VAR_1;
if ((b_2 <= 3.872731709600237e-232)) {
VAR_1 = (c / ((double) (((double) sqrt(((double) (((double) (b_2 * b_2)) - ((double) (c * a)))))) - b_2)));
} else {
double VAR_2;
if ((b_2 <= 1.9930311221408239e+59)) {
VAR_2 = (((double) (((double) -(b_2)) - ((double) sqrt(((double) (((double) (b_2 * b_2)) - ((double) (c * a)))))))) / a);
} else {
VAR_2 = ((double) (((double) (0.5 * (c / b_2))) + ((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 < -2.0155757731311035e137Initial program 62.3
rmApplied flip--62.3
Simplified37.0
Simplified37.0
rmApplied *-un-lft-identity37.0
Applied *-un-lft-identity37.0
Applied times-frac37.0
Simplified37.0
Simplified36.0
Taylor expanded around -inf 7.1
Simplified1.7
if -2.0155757731311035e137 < b_2 < 3.8727317096002367e-232Initial program 32.1
rmApplied flip--32.2
Simplified16.1
Simplified16.1
rmApplied *-un-lft-identity16.1
Applied *-un-lft-identity16.1
Applied times-frac16.1
Simplified16.1
Simplified9.1
if 3.8727317096002367e-232 < b_2 < 1.99303112214082389e59Initial program 8.0
if 1.99303112214082389e59 < b_2 Initial program 40.2
Taylor expanded around inf 5.5
Simplified5.5
Final simplification6.7
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))