mnovaes

15 Reputation

One Badge

5 years, 360 days

MaplePrimes Activity


These are replies submitted by mnovaes

@vv Ah, "degree". Thanks!

@vv Please see the edited question

@Carl Love

I am sorry, but I am not sure how to use this. My problem is the syntax in passing the variables.

Something like

n:=4; for m from 1 to 2 do
f:=(seq(x[i],i=1..m))->mul(binomial(n,x[i]),i=1..m);
CartProdAdd(f,seq(1..2,i=1..m));od;

doesnt work, and somethink like

n:=4; for m from 1 to 2 do
f:=(x)->mul(binomial(n,x[i]),i=1..m);
CartProdAdd(f,seq(1..2,i=1..m));od;

also doesnt work. How should I do this?

@Carl Love 

Thanks everyone for the help, especially this nice CartProdAdd procedure. Maple should come with this built in!

Page 1 of 1