\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 r77314 = b_2;
double r77315 = -r77314;
double r77316 = r77314 * r77314;
double r77317 = a;
double r77318 = c;
double r77319 = r77317 * r77318;
double r77320 = r77316 - r77319;
double r77321 = sqrt(r77320);
double r77322 = r77315 - r77321;
double r77323 = r77322 / r77317;
return r77323;
}
double f(double a, double b_2, double c) {
double r77324 = b_2;
double r77325 = -3.286134886319968e+57;
bool r77326 = r77324 <= r77325;
double r77327 = -0.5;
double r77328 = c;
double r77329 = r77328 / r77324;
double r77330 = r77327 * r77329;
double r77331 = 2.021456790140741e-132;
bool r77332 = r77324 <= r77331;
double r77333 = -r77324;
double r77334 = r77324 * r77324;
double r77335 = a;
double r77336 = r77335 * r77328;
double r77337 = r77334 - r77336;
double r77338 = sqrt(r77337);
double r77339 = r77333 + r77338;
double r77340 = r77328 / r77339;
double r77341 = 4.581932003920303e+61;
bool r77342 = r77324 <= r77341;
double r77343 = r77333 - r77338;
double r77344 = 1.0;
double r77345 = r77344 / r77335;
double r77346 = r77343 * r77345;
double r77347 = -2.0;
double r77348 = r77324 / r77335;
double r77349 = r77347 * r77348;
double r77350 = r77342 ? r77346 : r77349;
double r77351 = r77332 ? r77340 : r77350;
double r77352 = r77326 ? r77330 : r77351;
return r77352;
}



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 "NMSE problem 3.2.1"
:precision binary64
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))