\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 r55579 = b_2;
double r55580 = -r55579;
double r55581 = r55579 * r55579;
double r55582 = a;
double r55583 = c;
double r55584 = r55582 * r55583;
double r55585 = r55581 - r55584;
double r55586 = sqrt(r55585);
double r55587 = r55580 - r55586;
double r55588 = r55587 / r55582;
return r55588;
}
double f(double a, double b_2, double c) {
double r55589 = b_2;
double r55590 = -1.8696623466311214e+101;
bool r55591 = r55589 <= r55590;
double r55592 = -0.5;
double r55593 = c;
double r55594 = r55593 / r55589;
double r55595 = r55592 * r55594;
double r55596 = 7.455592343308264e-170;
bool r55597 = r55589 <= r55596;
double r55598 = a;
double r55599 = r55593 * r55598;
double r55600 = -r55599;
double r55601 = fma(r55589, r55589, r55600);
double r55602 = sqrt(r55601);
double r55603 = r55602 - r55589;
double r55604 = r55593 / r55603;
double r55605 = 0.5;
double r55606 = r55589 / r55598;
double r55607 = -2.0;
double r55608 = r55606 * r55607;
double r55609 = fma(r55605, r55594, r55608);
double r55610 = r55597 ? r55604 : r55609;
double r55611 = r55591 ? r55595 : r55610;
return r55611;
}



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))