pgordon1998

10 Reputation

One Badge

5 years, 271 days

MaplePrimes Activity


These are replies submitted by pgordon1998

Thanks @Carl Love 15801 for providing me with that hint, but unfortunately I am so dumbfounded when it comes to Maple and its programming that I still have no idea what to do here. @acer Here is what I have so far for this problem. I have no idea what to do for the rest, so if you could please also tell/show me how to do this so that I can understand exactly what needs to happen, it would be appreciated also. Thank you both again.

PowerSet({1,2,...,n});
                 PowerSet({1, 2, n, () .. ()})

nops(PowerSet(n));
                               1
RandSet(0..2^n-1);
                      RandSet(0..2^n-1)
set_to_subset(0..2^n-1);
                                set_to_subset(0..2^n-1)

@acer This is what I have so far for the problem. Each command keeps returning itself back and I think it's because I need to assign certain things (i.e. subsets, etc.), but I really have no idea how to. If you could please tell/show me how to do so so that I may understand what needs to be done here, I would greatly appreciate it. Thank you.

L:=[x1,x2,...,xn];
                     [x1, x2, () .. (), xn]
list_to_set([0,1,0,1,0]);
                  list_to_set([0, 1, 0, 1, 0])
nops(L);
                               4
set_to_list({1,3,5},5);
                   set_to_list({1, 3, 5}, 5)
set_to_list({1,2,3});
                     set_to_list({1, 2, 3})
set_to_list({1,2,4});
                     set_to_list({1, 2, 4})

 

Page 1 of 1