\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \le -9.66563711558993385 \cdot 10^{-69}:\\
\;\;\;\;1 \cdot \left(\frac{-1}{2} \cdot \frac{c}{b_2}\right)\\
\mathbf{elif}\;b_2 \le 9.1585291365273219 \cdot 10^{122}:\\
\;\;\;\;1 \cdot \left(\frac{-b_2}{a} - \frac{\sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;1 \cdot \left(-2 \cdot \frac{b_2}{a}\right)\\
\end{array}double f(double a, double b_2, double c) {
double r15732 = b_2;
double r15733 = -r15732;
double r15734 = r15732 * r15732;
double r15735 = a;
double r15736 = c;
double r15737 = r15735 * r15736;
double r15738 = r15734 - r15737;
double r15739 = sqrt(r15738);
double r15740 = r15733 - r15739;
double r15741 = r15740 / r15735;
return r15741;
}
double f(double a, double b_2, double c) {
double r15742 = b_2;
double r15743 = -9.665637115589934e-69;
bool r15744 = r15742 <= r15743;
double r15745 = 1.0;
double r15746 = -0.5;
double r15747 = c;
double r15748 = r15747 / r15742;
double r15749 = r15746 * r15748;
double r15750 = r15745 * r15749;
double r15751 = 9.158529136527322e+122;
bool r15752 = r15742 <= r15751;
double r15753 = -r15742;
double r15754 = a;
double r15755 = r15753 / r15754;
double r15756 = r15742 * r15742;
double r15757 = r15754 * r15747;
double r15758 = r15756 - r15757;
double r15759 = sqrt(r15758);
double r15760 = r15759 / r15754;
double r15761 = r15755 - r15760;
double r15762 = r15745 * r15761;
double r15763 = -2.0;
double r15764 = r15742 / r15754;
double r15765 = r15763 * r15764;
double r15766 = r15745 * r15765;
double r15767 = r15752 ? r15762 : r15766;
double r15768 = r15744 ? r15750 : r15767;
return r15768;
}



Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -9.665637115589934e-69Initial program 53.8
rmApplied div-inv53.8
rmApplied *-un-lft-identity53.8
Applied associate-*l*53.8
Simplified53.8
Taylor expanded around -inf 8.6
if -9.665637115589934e-69 < b_2 < 9.158529136527322e+122Initial program 13.0
rmApplied div-inv13.1
rmApplied *-un-lft-identity13.1
Applied associate-*l*13.1
Simplified13.0
rmApplied div-sub13.0
if 9.158529136527322e+122 < b_2 Initial program 53.1
rmApplied div-inv53.2
rmApplied *-un-lft-identity53.2
Applied associate-*l*53.2
Simplified53.1
rmApplied clear-num53.2
Taylor expanded around 0 3.2
Final simplification10.0
herbie shell --seed 2020036 +o rules:numerics
(FPCore (a b_2 c)
:name "quad2m (problem 3.2.1, negative)"
:precision binary64
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))