Compute the least square fitting for a function of tw variables and also the coefficient of determinatino (R**2).