Matrix in advanced perl programming oreilly
Posted on 2001-06-20
On page 28 of the book 'other matrix representations', number of element (8,4) in matrix of 10 rows and 5 colums is calculated as element 38, (7 * 5 + 3).
The formula i use to calculate this number =
E = (y-1)r + x
Where E = the element result i search,
r = rows of the matrix
searching element (x,y).
in the former example we get:
E = (4-1)*10 + 8.
E = 38.
Can anyone explain how the autor got to 7*5+3 ???
Thanks in advance(d perl programming)
50 pts. due to no real death importance, just questioning myself.