Comment Comment by beryilma A sure sign of an inexperienced programmer in numerical computing is when they check for equality to zero of a floating-point number asif (x == 0) ...instead of something likeif (abs(x) < eps) ...where eps is a suitably defined small number. parent beryilma 2 years ago
if (x == 0) ...
instead of something like
if (abs(x) < eps) ...
where eps is a suitably defined small number.