\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \le -2.8813430075089506 \cdot 10^{-61}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le 7.35146897748971308 \cdot 10^{79}:\\
\;\;\;\;\left(-\frac{b_2}{a}\right) + \left(-\frac{\sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{2} \cdot \frac{c}{b_2} - 2 \cdot \frac{b_2}{a}\\
\end{array}double f(double a, double b_2, double c) {
double r61246 = b_2;
double r61247 = -r61246;
double r61248 = r61246 * r61246;
double r61249 = a;
double r61250 = c;
double r61251 = r61249 * r61250;
double r61252 = r61248 - r61251;
double r61253 = sqrt(r61252);
double r61254 = r61247 - r61253;
double r61255 = r61254 / r61249;
return r61255;
}
double f(double a, double b_2, double c) {
double r61256 = b_2;
double r61257 = -2.8813430075089506e-61;
bool r61258 = r61256 <= r61257;
double r61259 = -0.5;
double r61260 = c;
double r61261 = r61260 / r61256;
double r61262 = r61259 * r61261;
double r61263 = 7.351468977489713e+79;
bool r61264 = r61256 <= r61263;
double r61265 = a;
double r61266 = r61256 / r61265;
double r61267 = -r61266;
double r61268 = r61256 * r61256;
double r61269 = r61265 * r61260;
double r61270 = r61268 - r61269;
double r61271 = sqrt(r61270);
double r61272 = r61271 / r61265;
double r61273 = -r61272;
double r61274 = r61267 + r61273;
double r61275 = 0.5;
double r61276 = r61275 * r61261;
double r61277 = 2.0;
double r61278 = r61277 * r61266;
double r61279 = r61276 - r61278;
double r61280 = r61264 ? r61274 : r61279;
double r61281 = r61258 ? r61262 : r61280;
return r61281;
}



Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -2.8813430075089506e-61Initial program 53.2
Taylor expanded around -inf 8.4
if -2.8813430075089506e-61 < b_2 < 7.351468977489713e+79Initial program 13.3
rmApplied clear-num13.4
rmApplied div-inv13.5
Applied add-cube-cbrt13.5
Applied times-frac13.5
Simplified13.5
Simplified13.5
rmApplied sub-neg13.5
Applied distribute-lft-in13.5
Simplified13.4
Simplified13.3
if 7.351468977489713e+79 < b_2 Initial program 41.8
Taylor expanded around inf 4.5
Final simplification9.9
herbie shell --seed 2020003 +o rules:numerics
(FPCore (a b_2 c)
:name "NMSE problem 3.2.1"
:precision binary64
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))