\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 r15435 = b_2;
double r15436 = -r15435;
double r15437 = r15435 * r15435;
double r15438 = a;
double r15439 = c;
double r15440 = r15438 * r15439;
double r15441 = r15437 - r15440;
double r15442 = sqrt(r15441);
double r15443 = r15436 - r15442;
double r15444 = r15443 / r15438;
return r15444;
}
double f(double a, double b_2, double c) {
double r15445 = b_2;
double r15446 = -3.286134886319968e+57;
bool r15447 = r15445 <= r15446;
double r15448 = -0.5;
double r15449 = c;
double r15450 = r15449 / r15445;
double r15451 = r15448 * r15450;
double r15452 = 2.021456790140741e-132;
bool r15453 = r15445 <= r15452;
double r15454 = -r15445;
double r15455 = r15445 * r15445;
double r15456 = a;
double r15457 = r15456 * r15449;
double r15458 = r15455 - r15457;
double r15459 = sqrt(r15458);
double r15460 = r15454 + r15459;
double r15461 = r15449 / r15460;
double r15462 = 4.581932003920303e+61;
bool r15463 = r15445 <= r15462;
double r15464 = r15454 - r15459;
double r15465 = 1.0;
double r15466 = r15465 / r15456;
double r15467 = r15464 * r15466;
double r15468 = -2.0;
double r15469 = r15445 / r15456;
double r15470 = r15468 * r15469;
double r15471 = r15463 ? r15467 : r15470;
double r15472 = r15453 ? r15461 : r15471;
double r15473 = r15447 ? r15451 : r15472;
return r15473;
}



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
Taylor expanded around 0 10.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
Taylor expanded around 0 61.5
Taylor expanded around 0 4.5
Final simplification7.1
herbie shell --seed 2020045 +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))