\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \le -8.95823697967250448 \cdot 10^{-5}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le -1.68158170222110598 \cdot 10^{-276}:\\
\;\;\;\;1 \cdot \frac{1 \cdot \frac{a}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{c}}}{a}\\
\mathbf{elif}\;b_2 \le 1.38731738723855584 \cdot 10^{50}:\\
\;\;\;\;1 \cdot \frac{\left(-b_2\right) - \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 ((double) (((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 <= -8.958236979672504e-05)) {
VAR = ((double) (-0.5 * ((double) (c / b_2))));
} else {
double VAR_1;
if ((b_2 <= -1.681581702221106e-276)) {
VAR_1 = ((double) (1.0 * ((double) (((double) (1.0 * ((double) (a / ((double) (((double) (((double) sqrt(((double) (((double) (b_2 * b_2)) - ((double) (a * c)))))) - b_2)) / c)))))) / a))));
} else {
double VAR_2;
if ((b_2 <= 1.3873173872385558e+50)) {
VAR_2 = ((double) (1.0 * ((double) (((double) (((double) -(b_2)) - ((double) sqrt(((double) (((double) (b_2 * b_2)) - ((double) (a * c)))))))) / a))));
} else {
VAR_2 = ((double) (((double) (0.5 * ((double) (c / b_2)))) - ((double) (2.0 * ((double) (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 < -8.958236979672504e-05Initial program 56.2
Taylor expanded around -inf 5.9
if -8.958236979672504e-05 < b_2 < -1.681581702221106e-276Initial program 26.2
rmApplied clear-num26.3
rmApplied *-un-lft-identity26.3
Applied *-un-lft-identity26.3
Applied times-frac26.3
Applied add-cube-cbrt26.3
Applied times-frac26.3
Simplified26.3
Simplified26.2
rmApplied flip--26.2
Simplified16.7
Simplified16.7
rmApplied *-un-lft-identity16.7
Applied *-un-lft-identity16.7
Applied times-frac16.7
Simplified16.7
Simplified13.2
if -1.681581702221106e-276 < b_2 < 1.3873173872385558e+50Initial program 10.1
rmApplied clear-num10.3
rmApplied *-un-lft-identity10.3
Applied *-un-lft-identity10.3
Applied times-frac10.3
Applied add-cube-cbrt10.3
Applied times-frac10.3
Simplified10.3
Simplified10.1
if 1.3873173872385558e+50 < b_2 Initial program 37.3
Taylor expanded around inf 4.8
Final simplification8.2
herbie shell --seed 2020114
(FPCore (a b_2 c)
:name "NMSE problem 3.2.1"
:precision binary64
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))