Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Creating a chopped table' topicStudent Support Forum > General > "Creating a chopped table"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'Creating a chopped table')
Author Date Posted
Creating a chopped table Kunk 08/25/08 00:38am
Re: Creating a chopped table Jason Biggs 08/30/08 00:04am
Next Comment >Help | Reply To Topic