Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: building a list containing elements f(i,j)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg71111] Re: building a list containing elements f(i,j)
  • From: "dimitris" <dimmechan at yahoo.com>
  • Date: Wed, 8 Nov 2006 06:16:29 -0500 (EST)
  • References: <eimr3e$dhv$1@smc.vnet.net>

One way

gg[n_] := Flatten[Table[f[i, j], {i, 0, n}, {j, 0, i}], 1]

So

gg[3]
{f[0, 0], f[1, 0], f[1, 1], f[2, 0], f[2, 1], f[2, 2], f[3, 0], f[3,
1], f[3, 2], f[3, 3]}

gg[4]
{f[0, 0], f[1, 0], f[1, 1], f[2, 0], f[2, 1], f[2, 2], f[3, 0], f[3,
1], f[3, 2], f[3, 3], f[4, 0],
f[4, 1], f[4, 2], f[4, 3], f[4, 4]}

Regrads
Dimitris


  • Prev by Date: Re: building a list containing elements f(i,j)
  • Next by Date: Re: really simple question
  • Previous by thread: Re: building a list containing elements f(i,j)
  • Next by thread: Re: building a list containing elements f(i,j)