\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \le -3.2861348863199683 \cdot 10^{57}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le 2.0214567901407411 \cdot 10^{-132}:\\
\;\;\;\;\frac{c}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}\\
\mathbf{elif}\;b_2 \le 4.58193200392030278 \cdot 10^{61}:\\
\;\;\;\;\left(\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}\right) \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \frac{b_2}{a}\\
\end{array}double f(double a, double b_2, double c) {
double r14144 = b_2;
double r14145 = -r14144;
double r14146 = r14144 * r14144;
double r14147 = a;
double r14148 = c;
double r14149 = r14147 * r14148;
double r14150 = r14146 - r14149;
double r14151 = sqrt(r14150);
double r14152 = r14145 - r14151;
double r14153 = r14152 / r14147;
return r14153;
}
double f(double a, double b_2, double c) {
double r14154 = b_2;
double r14155 = -3.286134886319968e+57;
bool r14156 = r14154 <= r14155;
double r14157 = -0.5;
double r14158 = c;
double r14159 = r14158 / r14154;
double r14160 = r14157 * r14159;
double r14161 = 2.021456790140741e-132;
bool r14162 = r14154 <= r14161;
double r14163 = -r14154;
double r14164 = r14154 * r14154;
double r14165 = a;
double r14166 = r14165 * r14158;
double r14167 = r14164 - r14166;
double r14168 = sqrt(r14167);
double r14169 = r14163 + r14168;
double r14170 = r14158 / r14169;
double r14171 = 4.581932003920303e+61;
bool r14172 = r14154 <= r14171;
double r14173 = r14163 - r14168;
double r14174 = 1.0;
double r14175 = r14174 / r14165;
double r14176 = r14173 * r14175;
double r14177 = -2.0;
double r14178 = r14154 / r14165;
double r14179 = r14177 * r14178;
double r14180 = r14172 ? r14176 : r14179;
double r14181 = r14162 ? r14170 : r14180;
double r14182 = r14156 ? r14160 : r14181;
return r14182;
}



Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -3.286134886319968e+57Initial program 57.9
Taylor expanded around -inf 3.7
if -3.286134886319968e+57 < b_2 < 2.021456790140741e-132Initial program 24.7
rmApplied div-inv24.8
rmApplied flip--25.7
Applied associate-*l/25.8
Simplified15.8
rmApplied *-un-lft-identity15.8
Applied *-un-lft-identity15.8
Applied times-frac15.8
Simplified15.8
Simplified10.9
if 2.021456790140741e-132 < b_2 < 4.581932003920303e+61Initial program 6.5
rmApplied div-inv6.7
if 4.581932003920303e+61 < b_2 Initial program 39.5
rmApplied div-inv39.6
rmApplied flip--62.4
Applied associate-*l/62.4
Simplified61.6
rmApplied *-un-lft-identity61.6
Applied *-un-lft-identity61.6
Applied times-frac61.6
Simplified61.6
Simplified61.5
Taylor expanded around 0 4.5
Final simplification7.1
herbie shell --seed 2020045
(FPCore (a b_2 c)
:name "quad2m (problem 3.2.1, negative)"
:precision binary64
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))