Question: Combinations of numbers

Hi there,

I need to create permutations of this given set Z:=[2,5,7,8,10] with Maple and substitute these numbers in a given polynomial. 

To create the permutations i did this on maple:

> Z:=[2,5,7,8,10];

> C := combinat[permute](Z, 3):

how do I labelled the outcome of the permutations "C" as [a,b,c] so that I can then subtitute each permutation into the polynomial f:=4a+2b+c?

 

Thankyou for any help!

:)

Please Wait...