\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \le -2.6063173736106266 \cdot 10^{+63}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le -6.590101287064612 \cdot 10^{-255}:\\
\;\;\;\;\frac{c}{\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)}\\
\mathbf{elif}\;b_2 \le 5.646875521171257 \cdot 10^{+50}:\\
\;\;\;\;\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b_2} \cdot \frac{1}{2} - \frac{b_2}{a} \cdot 2\\
\end{array}double f(double a, double b_2, double c) {
double r493902 = b_2;
double r493903 = -r493902;
double r493904 = r493902 * r493902;
double r493905 = a;
double r493906 = c;
double r493907 = r493905 * r493906;
double r493908 = r493904 - r493907;
double r493909 = sqrt(r493908);
double r493910 = r493903 - r493909;
double r493911 = r493910 / r493905;
return r493911;
}
double f(double a, double b_2, double c) {
double r493912 = b_2;
double r493913 = -2.6063173736106266e+63;
bool r493914 = r493912 <= r493913;
double r493915 = -0.5;
double r493916 = c;
double r493917 = r493916 / r493912;
double r493918 = r493915 * r493917;
double r493919 = -6.590101287064612e-255;
bool r493920 = r493912 <= r493919;
double r493921 = r493912 * r493912;
double r493922 = a;
double r493923 = r493922 * r493916;
double r493924 = r493921 - r493923;
double r493925 = sqrt(r493924);
double r493926 = -r493912;
double r493927 = r493925 + r493926;
double r493928 = r493916 / r493927;
double r493929 = 5.646875521171257e+50;
bool r493930 = r493912 <= r493929;
double r493931 = r493926 - r493925;
double r493932 = r493931 / r493922;
double r493933 = 0.5;
double r493934 = r493917 * r493933;
double r493935 = r493912 / r493922;
double r493936 = 2.0;
double r493937 = r493935 * r493936;
double r493938 = r493934 - r493937;
double r493939 = r493930 ? r493932 : r493938;
double r493940 = r493920 ? r493928 : r493939;
double r493941 = r493914 ? r493918 : r493940;
return r493941;
}



Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -2.6063173736106266e+63Initial program 57.2
rmApplied div-inv57.2
Taylor expanded around -inf 3.7
if -2.6063173736106266e+63 < b_2 < -6.590101287064612e-255Initial program 31.5
rmApplied div-inv31.6
rmApplied flip--31.7
Applied associate-*l/31.7
Simplified16.3
Taylor expanded around -inf 8.2
if -6.590101287064612e-255 < b_2 < 5.646875521171257e+50Initial program 9.9
rmApplied div-inv10.0
rmApplied associate-*r/9.9
Simplified9.9
if 5.646875521171257e+50 < b_2 Initial program 36.4
Taylor expanded around inf 5.6
Final simplification6.9
herbie shell --seed 2019138
(FPCore (a b_2 c)
:name "quad2m (problem 3.2.1, negative)"
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))