\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \le -2.852138444177435 \cdot 10^{-54}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le 7.803671648955123 \cdot 10^{+137}:\\
\;\;\;\;-\left(\frac{b_2}{a} + \frac{\sqrt{b_2 \cdot b_2 - c \cdot a}}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \frac{b_2}{a}\\
\end{array}double f(double a, double b_2, double c) {
double r2134600 = b_2;
double r2134601 = -r2134600;
double r2134602 = r2134600 * r2134600;
double r2134603 = a;
double r2134604 = c;
double r2134605 = r2134603 * r2134604;
double r2134606 = r2134602 - r2134605;
double r2134607 = sqrt(r2134606);
double r2134608 = r2134601 - r2134607;
double r2134609 = r2134608 / r2134603;
return r2134609;
}
double f(double a, double b_2, double c) {
double r2134610 = b_2;
double r2134611 = -2.852138444177435e-54;
bool r2134612 = r2134610 <= r2134611;
double r2134613 = -0.5;
double r2134614 = c;
double r2134615 = r2134614 / r2134610;
double r2134616 = r2134613 * r2134615;
double r2134617 = 7.803671648955123e+137;
bool r2134618 = r2134610 <= r2134617;
double r2134619 = a;
double r2134620 = r2134610 / r2134619;
double r2134621 = r2134610 * r2134610;
double r2134622 = r2134614 * r2134619;
double r2134623 = r2134621 - r2134622;
double r2134624 = sqrt(r2134623);
double r2134625 = r2134624 / r2134619;
double r2134626 = r2134620 + r2134625;
double r2134627 = -r2134626;
double r2134628 = -2.0;
double r2134629 = r2134628 * r2134620;
double r2134630 = r2134618 ? r2134627 : r2134629;
double r2134631 = r2134612 ? r2134616 : r2134630;
return r2134631;
}



Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -2.852138444177435e-54Initial program 53.4
rmApplied div-sub54.0
rmApplied *-un-lft-identity54.0
Applied add-sqr-sqrt55.1
Applied times-frac55.5
Simplified55.5
Taylor expanded around -inf 8.3
if -2.852138444177435e-54 < b_2 < 7.803671648955123e+137Initial program 12.6
rmApplied div-sub12.6
rmApplied *-un-lft-identity12.6
Applied add-sqr-sqrt12.8
Applied times-frac12.8
Simplified12.8
rmApplied sub-neg12.8
Simplified12.6
if 7.803671648955123e+137 < b_2 Initial program 53.1
rmApplied div-sub53.1
rmApplied div-inv53.2
Applied div-inv53.2
Applied distribute-rgt-out--53.2
Taylor expanded around 0 2.6
Final simplification9.7
herbie shell --seed 2019143 +o rules:numerics
(FPCore (a b_2 c)
:name "NMSE problem 3.2.1"
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))