The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Re: Dynamic list creation
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Berthold Hamburger

Posts: 20
Registered: 3/11/11
Re: Dynamic list creation
Posted: Apr 2, 2012 4:22 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


Please disregard my earlier message. The issue has been solved.


Berthold Hamburger

On 01/04/2012 17:58, Berthold Hamburger wrote:
> Hi,
> I want to create a table of values dynamically based on the input of a
> variable that gives the dimension of the table.
> The variable can take on integer values >0.
> I give an example for a variable with value 3.
> The table created would have to have the following format and I am
> wondering how to create a rule to do this:
> {{2,0,0},{1,1,0},{1,0,1}},
> {{0,2,0},{0,1,1},{1,1,0}},
> {{0,0,2},{1,0,1},{0,1,1}}
> The purpose of this table is a representation of indices that are used
> to create itorators for a multiple integration problem. The pattern is
> always the same disregarding the dimensions of the table.
> Different strategies came to mind, like using diagonal matrices in the
> first place for the basic layout and then filling in the blanks via
> rules. However, I am quite stuck with this and can't find the proper
> way to go about it.
> Regards
> Berthold Hamburger

Berthold Hamburger - Cellist/Spain | | | Sent from Thunderbird

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.