MathGroup Archive 2004

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

Search the Archive

Re: Iterator problem.


Hi,

and j should run from i, while i is not set to a value, only
Table[a[i] + a[j] + a[k], {k, 1, 3}, {j, 1, k}, {i, j, k}]

will do something but probably not what you want.

Regards

 Jens




"Robert G. Wilson v" <rgwv at rgwv.com> schrieb im Newsbeitrag 
news:cnuoj6$squ$1 at smc.vnet.net...
> Hello,
>
> I am having a problem with iterators in Mathematica.
>
> I have a sequence of integers defined by a[n]. I wish to build a table
> of integers out of the above such that this table only contains integers 
> of
> the form a(i)+a(j)+a(k).
>
> I tried Table[a[i] + a[j] + a[k], {k, 1, 3}, {j, i, k}, {i, 1, j}] but
> the iterators do not have appropriate bounds.
>
> Any help would be greatly appreciated.
>
> Sincerely,
>
> Bob.
> 



  • Prev by Date: Re: Re: Re: Newly Released Mathematica 5.1 Delivers Unmatched Performance for Handling Data
  • Next by Date: filtering graphics
  • Previous by thread: Re: Iterator problem.
  • Next by thread: Heko with datanase connections in Mathematica 5.1