| Author |
Comment/Response |
Kunk
|
08/25/08 00:38am
I created a table ranging from n+1 to n+5. I now want to create a table from this table that if a number in this new table is greater then 5, it will be switched back to its remainder from 5.
Example:
numd = n + i;
numadd = Table[numd, {n, 0, 5}];
I want to create a table to make the output look like this
{{1, 2, 3, 4, 5}, {2, 3, 4, 5, 1}, {3, 4, 5, 1, 2}, {4, 5, 1, 2, 3}, {5, 1, 2, 3, 4}, etc....
Can I get some insight on how to do this. I tried "If" statements and have not succeeded.
URL: , |
|