Error analysis of the parameters of a least-squares determined curve when both variables have uncertainties