Error using bad_average is 0 Error using better_average is a nonzero number near 3.33066907387547e-015