\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\begin{array}{l}
\mathbf{if}\;b_2 \le -2.44666123176016780594980092347699614144 \cdot 10^{151}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le 1.12333471942415508636906215603303726066 \cdot 10^{-161}:\\
\;\;\;\;\frac{c}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}\\
\mathbf{elif}\;b_2 \le 1.104385716015500810854693836311545666138 \cdot 10^{144}:\\
\;\;\;\;\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}\\
\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 r58700 = b_2;
double r58701 = -r58700;
double r58702 = r58700 * r58700;
double r58703 = a;
double r58704 = c;
double r58705 = r58703 * r58704;
double r58706 = r58702 - r58705;
double r58707 = sqrt(r58706);
double r58708 = r58701 - r58707;
double r58709 = r58708 / r58703;
return r58709;
}
double f(double a, double b_2, double c) {
double r58710 = b_2;
double r58711 = -2.4466612317601678e+151;
bool r58712 = r58710 <= r58711;
double r58713 = -0.5;
double r58714 = c;
double r58715 = r58714 / r58710;
double r58716 = r58713 * r58715;
double r58717 = 1.123334719424155e-161;
bool r58718 = r58710 <= r58717;
double r58719 = r58710 * r58710;
double r58720 = a;
double r58721 = r58720 * r58714;
double r58722 = r58719 - r58721;
double r58723 = sqrt(r58722);
double r58724 = r58723 - r58710;
double r58725 = r58714 / r58724;
double r58726 = 1.1043857160155008e+144;
bool r58727 = r58710 <= r58726;
double r58728 = 1.0;
double r58729 = -r58710;
double r58730 = r58729 - r58723;
double r58731 = r58720 / r58730;
double r58732 = r58728 / r58731;
double r58733 = 0.5;
double r58734 = r58733 * r58715;
double r58735 = 2.0;
double r58736 = r58710 / r58720;
double r58737 = r58735 * r58736;
double r58738 = r58734 - r58737;
double r58739 = r58727 ? r58732 : r58738;
double r58740 = r58718 ? r58725 : r58739;
double r58741 = r58712 ? r58716 : r58740;
return r58741;
}



Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -2.4466612317601678e+151Initial program 63.7
Taylor expanded around -inf 1.2
if -2.4466612317601678e+151 < b_2 < 1.123334719424155e-161Initial program 31.1
rmApplied flip--31.3
Simplified16.2
Simplified16.2
rmApplied *-un-lft-identity16.2
Applied *-un-lft-identity16.2
Applied times-frac16.2
Simplified16.2
Simplified9.4
if 1.123334719424155e-161 < b_2 < 1.1043857160155008e+144Initial program 6.1
rmApplied clear-num6.3
if 1.1043857160155008e+144 < b_2 Initial program 59.6
rmApplied flip--63.9
Simplified62.7
Simplified62.7
rmApplied *-un-lft-identity62.7
Applied *-un-lft-identity62.7
Applied times-frac62.7
Simplified62.7
Simplified62.5
rmApplied clear-num62.5
Taylor expanded around inf 2.3
Final simplification6.3
herbie shell --seed 2019325
(FPCore (a b_2 c)
:name "NMSE problem 3.2.1"
:precision binary64
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))