Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #13230
| From | Nigel King <nigel.king@cambiumnetworks.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: problem with append |
| Date | 2013-01-21 05:06 +0000 |
| Message-ID | <kdiibv$nbe$1@smc.vnet.net> (permalink) |
| References | <20130120062148.0CB436854@smc.vnet.net> |
| Organization | Time-Warner Telecom |
Hi Paolo,
I think that you have two errors.
The first is that AppendTo has a capital T
The second is that you need to initialise rr outside the loops. It seems that rr={} inside the AppendTo function is applying the initialisation after the Append
rr={};
For[a = 2, a < 6, a++,
For[b = 2, b < 6, b++,
AppendTo[rr, a^b]]]
rr
Nigel King
On 20 Jan 2013, at 06:21, Paolo cachecho <paolocach@gmail.com>
wrote:
For[a = 2, a < 6, a++,
For[b = 2, b < 6, b++,
Appendto[rr = {}, a^b]]]
rr
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: problem with append Nigel King <nigel.king@cambiumnetworks.com> - 2013-01-21 05:06 +0000
csiph-web