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: problem with append
Replies: 9   Last Post: Jan 22, 2013 11:18 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Adriano Pascoletti

Posts: 46
Registered: 4/16/10
Re: problem with append
Posted: Jan 21, 2013 12:07 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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


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 <>

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

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.