sqrt2 gets negative number error checking