\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \le -4.480438689913748487373959126319169123206 \cdot 10^{132}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le 2.954758924359901575960141625055196744333 \cdot 10^{-290}:\\
\;\;\;\;\frac{\frac{1}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}{\frac{1}{c}}\\
\mathbf{elif}\;b_2 \le 2.043334298601044940502096480059938459672 \cdot 10^{53}:\\
\;\;\;\;\left(\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}\right) \cdot \frac{1}{a}\\
\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 r21077 = b_2;
double r21078 = -r21077;
double r21079 = r21077 * r21077;
double r21080 = a;
double r21081 = c;
double r21082 = r21080 * r21081;
double r21083 = r21079 - r21082;
double r21084 = sqrt(r21083);
double r21085 = r21078 - r21084;
double r21086 = r21085 / r21080;
return r21086;
}
double f(double a, double b_2, double c) {
double r21087 = b_2;
double r21088 = -4.4804386899137485e+132;
bool r21089 = r21087 <= r21088;
double r21090 = -0.5;
double r21091 = c;
double r21092 = r21091 / r21087;
double r21093 = r21090 * r21092;
double r21094 = 2.9547589243599016e-290;
bool r21095 = r21087 <= r21094;
double r21096 = 1.0;
double r21097 = r21087 * r21087;
double r21098 = a;
double r21099 = r21098 * r21091;
double r21100 = r21097 - r21099;
double r21101 = sqrt(r21100);
double r21102 = r21101 - r21087;
double r21103 = r21096 / r21102;
double r21104 = r21096 / r21091;
double r21105 = r21103 / r21104;
double r21106 = 2.043334298601045e+53;
bool r21107 = r21087 <= r21106;
double r21108 = -r21087;
double r21109 = r21108 - r21101;
double r21110 = r21096 / r21098;
double r21111 = r21109 * r21110;
double r21112 = 0.5;
double r21113 = r21112 * r21092;
double r21114 = 2.0;
double r21115 = r21087 / r21098;
double r21116 = r21114 * r21115;
double r21117 = r21113 - r21116;
double r21118 = r21107 ? r21111 : r21117;
double r21119 = r21095 ? r21105 : r21118;
double r21120 = r21089 ? r21093 : r21119;
return r21120;
}



Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -4.4804386899137485e+132Initial program 61.6
Taylor expanded around -inf 1.8
if -4.4804386899137485e+132 < b_2 < 2.9547589243599016e-290Initial program 34.0
rmApplied flip--34.0
Simplified16.4
Simplified16.4
rmApplied *-un-lft-identity16.4
Applied associate-/r*16.4
Simplified14.8
rmApplied div-inv14.8
Applied *-un-lft-identity14.8
Applied times-frac16.5
Applied associate-/l*15.1
Simplified9.1
if 2.9547589243599016e-290 < b_2 < 2.043334298601045e+53Initial program 8.3
rmApplied div-inv8.5
if 2.043334298601045e+53 < b_2 Initial program 38.1
Taylor expanded around inf 5.7
Final simplification6.8
herbie shell --seed 2019362
(FPCore (a b_2 c)
:name "quad2m (problem 3.2.1, negative)"
:precision binary64
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))