Maybe I missed the point here but after

R.<x1,x2>=QQ[]
M=matrix(R,1,2,[x1+x2,x1*x2])

you can get at the entries like this:
sage: M[0,0]
x1 + x2
sage: M[0,1]
x1*x2

where the only non-obvious thing to a mathematician is that the
row/col indices start at at 0.

The list() discussion seems separate to me.

John Cremona

2008/12/29 Santanu Sarkar <[email protected]>:
> I write a program in SAGE as follows:
> R.<x1,x2>=QQ[]
> M=matrix(R,1,2,[x1+x2,x1*x2])
> may i do following steps to extract polynomials from matrix?
> 1) x = list(M)
> 2) f1 = x[0]
> 3) f2 = x[1]
> is f1 & f2 are polynomials?
> if not how i can get them? please help me!
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to