141022-iss001: remove DBL_EPSILON
141023-iss001: modify calc_degree_of_freedom