On Jun 7, 2009, at 15:53 , amps wrote:

>
> When I say that n is not predetermined, I mean that I want my script
> to work for any n.  So before I define the polynomial ring, n is
> determined, but I want this to work for all n.  So my question is how
> do I do the following.
>
> n=6
> R=PolynomialRing(QQ,n,'z')
> z=R.gens()
> g=sum(z[i] for i in range(n))
>
> now how would I substitute into g the values z[i]=i?  I want to keep n
> as a variable.

I understand what you want to do, I think.  If my reply to your last  
message doesn't answer your question, let us know.

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
I'm beginning to like the cut of his jibberish.
-----------




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

Reply via email to