MathGroup Archive 2007

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

Search the Archive

Re: question about For

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84134] Re: question about For
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 11 Dec 2007 06:07:49 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <fjkqg9$k3i$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

hmm ... and the other functions like Table[]

t=Table[i,{i,4}]

do not help ?
And ..

t={};
For[i=1,i<5,
   Print[i];
   AppendTo[t,i++]
  ]

Regards
   Jens

Ary Adilson Morales Alvarado wrote:
> Dear friends,
> 
> I would like to know how to save the data from a For loop.
> 
> Something like that:
> 
> t=For[i = 1, i < 5, Print[i]; i++]
> 
> t={1, 2, 3, 4}
> 
> Thanks in advance
> 
> Ary
> 
> 
> 


  • Prev by Date: Re: Monitor bug or feature
  • Next by Date: Re: FullSimplify with Pi
  • Previous by thread: Re: question about For
  • Next by thread: Re: question about For