MathGroup Archive 2007

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

Search the Archive

Re: making mutliple list in one line

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78580] Re: making mutliple list in one line
  • From: dimitris <dimmechan at yahoo.com>
  • Date: Thu, 5 Jul 2007 03:51:32 -0400 (EDT)
  • References: <f6fqjb$8lg$1@smc.vnet.net>

            JGBoone at gmail.com       :
> is there a way to make mutliple lists on one line of command?
> i am writing 3 lines like so
> a=Range[x]
> b=Range[x]
> c=Range[x]
>  and want to make it into one line
>
>
> thanks

In[31]:=
Range[{3, 3, 3, 3}]

Out[31]=
{{1,2,3},{1,2,3},{1,2,3},{1,2,3}}

In[32]:=
Table[Random[Integer, {1, 10}], {3}, {4}]

Out[32]=
{{7,2,9,2},{6,1,6,3},{1,5,3,8}}

In[33]:=
Array[a, {3, 4}]

Out[33]=
{{a[1,1],a[1,2],a[1,3],a[1,4]},{a[2,1],a[2,2],a[2,3],a[2,4]},{
  a[3,1],a[3,2],a[3,3],a[3,4]}}

???

Dimitris



  • Prev by Date: Re: Version 6 code for Manger Sponge????
  • Next by Date: Re: making mutliple list in one line
  • Previous by thread: RE: making mutliple list in one line
  • Next by thread: Re: making mutliple list in one line