\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \le -1.869662346631121401645595393947635525169 \cdot 10^{101}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le 7.455592343308264166675918758902222662503 \cdot 10^{-170}:\\
\;\;\;\;\frac{c}{\sqrt{\mathsf{fma}\left(b_2, b_2, -c \cdot a\right)} - b_2}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{1}{2}, \frac{c}{b_2}, \frac{b_2}{a} \cdot -2\right)\\
\end{array}double f(double a, double b_2, double c) {
double r67933 = b_2;
double r67934 = -r67933;
double r67935 = r67933 * r67933;
double r67936 = a;
double r67937 = c;
double r67938 = r67936 * r67937;
double r67939 = r67935 - r67938;
double r67940 = sqrt(r67939);
double r67941 = r67934 - r67940;
double r67942 = r67941 / r67936;
return r67942;
}
double f(double a, double b_2, double c) {
double r67943 = b_2;
double r67944 = -1.8696623466311214e+101;
bool r67945 = r67943 <= r67944;
double r67946 = -0.5;
double r67947 = c;
double r67948 = r67947 / r67943;
double r67949 = r67946 * r67948;
double r67950 = 7.455592343308264e-170;
bool r67951 = r67943 <= r67950;
double r67952 = a;
double r67953 = r67947 * r67952;
double r67954 = -r67953;
double r67955 = fma(r67943, r67943, r67954);
double r67956 = sqrt(r67955);
double r67957 = r67956 - r67943;
double r67958 = r67947 / r67957;
double r67959 = 0.5;
double r67960 = r67943 / r67952;
double r67961 = -2.0;
double r67962 = r67960 * r67961;
double r67963 = fma(r67959, r67948, r67962);
double r67964 = r67951 ? r67958 : r67963;
double r67965 = r67945 ? r67949 : r67964;
return r67965;
}



Bits error versus a



Bits error versus b_2



Bits error versus c
if b_2 < -1.8696623466311214e+101Initial program 59.8
Taylor expanded around -inf 2.5
if -1.8696623466311214e+101 < b_2 < 7.455592343308264e-170Initial program 28.9
rmApplied flip--29.1
Simplified16.6
Simplified16.6
rmApplied *-un-lft-identity16.6
Applied *-un-lft-identity16.6
Applied *-un-lft-identity16.6
Applied times-frac16.6
Applied times-frac16.6
Simplified16.6
Simplified11.1
if 7.455592343308264e-170 < b_2 Initial program 23.0
Taylor expanded around inf 17.1
Simplified17.1
Final simplification11.3
herbie shell --seed 2019323 +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))