rollojj

0 Reputation

2 Badges

10 years, 91 days

MaplePrimes Activity


These are questions asked by rollojj

Dear everyone,

I'm trying to create a list, L, of all vectors of length l with values in a small discrete set S (eg S:={1,2,3}). I can do this for any particular l by the following code:
(Assume l:=5)

L:=[]:
for i_1 in S do
for i_2 in S do
for i_3 in S do
for i_4 in S do
for i_5 in S do
                          ...

Page 1 of 1