MathGroup Archive 2013

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

Search the Archive

Re: problem with append

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129544] Re: problem with append
  • From: Adriano Pascoletti <adriano.pascoletti at uniud.it>
  • Date: Mon, 21 Jan 2013 00:11:43 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <20130120062148.0CB436854@smc.vnet.net>

In[5]:= rr={};For[a=2,a<6,a++,For[b=2,b<6,b++,AppendTo[rr,a^b]]]


rr

Out[6]= {4,8,16,32,9,27,81,243,16,64,256,1024,25,125,625,3125}


Adriano Pascoletti


2013/1/20 Paolo cachecho <paolocach at gmail.com>

> For[a = 2, a < 6, a++,
>         For[b = 2, b < 6, b++,
>   Appendto[rr = {}, a^b]]]
> rr
>


  • Prev by Date: Re: problem with append
  • Next by Date: Re: Solid State Disk to boost Mathematica performance
  • Previous by thread: Re: problem with append
  • Next by thread: Re: problem with append