\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\begin{array}{l}
\mathbf{if}\;b \le -1.006124725233072906597672755451758607334 \cdot 10^{153}:\\
\;\;\;\;\left(\frac{c}{b} - \frac{b}{a}\right) \cdot 1\\
\mathbf{elif}\;b \le 5.668416736491797065158030167390678793472 \cdot 10^{-35}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{a \cdot 2} - \frac{b}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -1\\
\end{array}double f(double a, double b, double c) {
double r2014811 = b;
double r2014812 = -r2014811;
double r2014813 = r2014811 * r2014811;
double r2014814 = 4.0;
double r2014815 = a;
double r2014816 = r2014814 * r2014815;
double r2014817 = c;
double r2014818 = r2014816 * r2014817;
double r2014819 = r2014813 - r2014818;
double r2014820 = sqrt(r2014819);
double r2014821 = r2014812 + r2014820;
double r2014822 = 2.0;
double r2014823 = r2014822 * r2014815;
double r2014824 = r2014821 / r2014823;
return r2014824;
}
double f(double a, double b, double c) {
double r2014825 = b;
double r2014826 = -1.0061247252330729e+153;
bool r2014827 = r2014825 <= r2014826;
double r2014828 = c;
double r2014829 = r2014828 / r2014825;
double r2014830 = a;
double r2014831 = r2014825 / r2014830;
double r2014832 = r2014829 - r2014831;
double r2014833 = 1.0;
double r2014834 = r2014832 * r2014833;
double r2014835 = 5.668416736491797e-35;
bool r2014836 = r2014825 <= r2014835;
double r2014837 = r2014825 * r2014825;
double r2014838 = 4.0;
double r2014839 = r2014830 * r2014828;
double r2014840 = r2014838 * r2014839;
double r2014841 = r2014837 - r2014840;
double r2014842 = sqrt(r2014841);
double r2014843 = 2.0;
double r2014844 = r2014830 * r2014843;
double r2014845 = r2014842 / r2014844;
double r2014846 = r2014825 / r2014844;
double r2014847 = r2014845 - r2014846;
double r2014848 = -1.0;
double r2014849 = r2014829 * r2014848;
double r2014850 = r2014836 ? r2014847 : r2014849;
double r2014851 = r2014827 ? r2014834 : r2014850;
return r2014851;
}



Bits error versus a



Bits error versus b



Bits error versus c
Results
if b < -1.0061247252330729e+153Initial program 63.7
rmApplied div-inv63.7
Taylor expanded around -inf 2.0
Simplified2.0
if -1.0061247252330729e+153 < b < 5.668416736491797e-35Initial program 13.9
rmApplied clear-num14.1
Simplified14.1
rmApplied *-un-lft-identity14.1
Applied add-cube-cbrt14.1
Applied times-frac14.1
Simplified14.1
Simplified13.9
rmApplied div-sub14.0
if 5.668416736491797e-35 < b Initial program 54.6
Taylor expanded around inf 7.2
Final simplification10.2
herbie shell --seed 2019169 +o rules:numerics
(FPCore (a b c)
:name "Quadratic roots, full range"
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))