View Single Post
Old 03-27-2013, 04:04 AM   #9
SebC
tromboner
 
SebC's Avatar
 
Join Date: Mar 2006
Location: where the lattes are
Exp:
Default

Quote:
Originally Posted by JeanLucPicard View Post
edit: nevermind I think I get it if the change in data is constant and has a pattern. But I don't know what would be like if there was no pattern to the data. for example, x: 1,4,7,8,9 and y: 13,15,17,19,22
Then you need a=0 and b=0, or if a and b aren't constants then a[i]=(C-b[i]*y[i])/x[i] (where i is the index of the row) is the general solution (which is basically just re-arranging the problem).
SebC is offline   Reply With Quote
The Following User Says Thank You to SebC For This Useful Post: