I want to code a matrix, which I don't know the number of elements of.

The matrix looks like this:

- Code: Select all
`xo^N xo^(N-1) xo^(N-2) ... xo^1 xo^0`

xo^N xo^(N-1) xo^(N-2) ... xo^1 xo^0

... ... ...

... ... ...

xn^N xn^(N-1) xn^(N-2) ... xn^1 xn^0

where n=N.

I know how to create a matrix but it makes me confused that it is unlimited.

I was thinking about doing this with for loop, but I don't know exactly how.

I want to write it exactly like here with a lot of dots, but I can't

I started even if I didn't know how to, and wrote this:

- Code: Select all
`def v(x0,x1,x2,x3,x4,N):`

v1 = [array((x0,x1,x2,x3,x4))]

return ve0 = (array(v1**(N)))

ve1 = (array(v1**(N-1)))

ve2 = (array(v1**(N-1)))

vei = (array(v1**(N-i))for i in xrange(0,N))

return column stack([v1, v2, v3, v4, v5]).

But I do realize that I have to do it differently.

Could someone please help me?

Thank you!

// Luce.