Quote:
Originally Posted by JeanLucPicard
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).