\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \le -5.709051322868216 \cdot 10^{+150}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le 1.5270348471001126 \cdot 10^{-284}:\\
\;\;\;\;\frac{c}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}\\
\mathbf{elif}\;b_2 \le 7.774374944213099 \cdot 10^{+79}:\\
\;\;\;\;\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \frac{b_2}{a}\\
\end{array}double f(double a, double b_2, double c) {
double r4041905 = b_2;
double r4041906 = -r4041905;
double r4041907 = r4041905 * r4041905;
double r4041908 = a;
double r4041909 = c;
double r4041910 = r4041908 * r4041909;
double r4041911 = r4041907 - r4041910;
double r4041912 = sqrt(r4041911);
double r4041913 = r4041906 - r4041912;
double r4041914 = r4041913 / r4041908;
return r4041914;
}
double f(double a, double b_2, double c) {
double r4041915 = b_2;
double r4041916 = -5.709051322868216e+150;
bool r4041917 = r4041915 <= r4041916;
double r4041918 = -0.5;
double r4041919 = c;
double r4041920 = r4041919 / r4041915;
double r4041921 = r4041918 * r4041920;
double r4041922 = 1.5270348471001126e-284;
bool r4041923 = r4041915 <= r4041922;
double r4041924 = r4041915 * r4041915;
double r4041925 = a;
double r4041926 = r4041925 * r4041919;
double r4041927 = r4041924 - r4041926;
double r4041928 = sqrt(r4041927);
double r4041929 = r4041928 - r4041915;
double r4041930 = r4041919 / r4041929;
double r4041931 = 7.774374944213099e+79;
bool r4041932 = r4041915 <= r4041931;
double r4041933 = 1.0;
double r4041934 = -r4041915;
double r4041935 = r4041934 - r4041928;
double r4041936 = r4041925 / r4041935;
double r4041937 = r4041933 / r4041936;
double r4041938 = -2.0;
double r4041939 = r4041915 / r4041925;
double r4041940 = r4041938 * r4041939;
double r4041941 = r4041932 ? r4041937 : r4041940;
double r4041942 = r4041923 ? r4041930 : r4041941;
double r4041943 = r4041917 ? r4041921 : r4041942;
return r4041943;
}



Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -5.709051322868216e+150Initial program 62.7
Taylor expanded around -inf 1.1
if -5.709051322868216e+150 < b_2 < 1.5270348471001126e-284Initial program 32.2
rmApplied flip--32.3
Simplified15.3
Simplified15.3
rmApplied *-un-lft-identity15.3
Applied *-un-lft-identity15.3
Applied times-frac15.3
Simplified15.3
Simplified19.2
rmApplied associate-/r*13.8
Simplified7.9
if 1.5270348471001126e-284 < b_2 < 7.774374944213099e+79Initial program 9.1
rmApplied *-un-lft-identity9.1
Applied associate-/l*9.3
if 7.774374944213099e+79 < b_2 Initial program 40.0
rmApplied *-un-lft-identity40.0
Applied associate-/l*40.1
Taylor expanded around 0 4.2
Final simplification6.3
herbie shell --seed 2019144 +o rules:numerics
(FPCore (a b_2 c)
:name "NMSE problem 3.2.1"
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))