> On May 8, 2019, at 06:14 , Santanu Sarkar <sarkar.santanu....@gmail.com> > wrote: > > I know how to define variables over BooleanPolynomialRing. > This is as follows. > > n=4 > V=BooleanPolynomialRing(n+1,['z%d'%(i) for i in range(n+1)] ) > V.inject_variables() > > Can we define similar code over integers (ZZ) or rationals (QQ)? > Also I want to store variables in an array like Z=[z0,z1,z2,z3] > but it should be automatic. I will change only n. Check out PolynomialRing. Typing PolynomialRing? will give you some documentation. HTH Justin -- Justin C. Walker Curmudgeon at Large Director Institute for the Enhancement of the Director's Income -- Build a man a fire and he'll be warm for a night. Set a man on fire and he'll be warm for the rest of his life. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/BBF0F4D5-0ABA-4B47-B730-DD38A2F23B3C%40mac.com. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] How to define variables over integer
'Justin C. Walker' via sage-support Thu, 23 May 2019 02:39:28 -0700
- [sage-support] How to define variables... Santanu Sarkar
- [sage-support] Re: How to define ... darwin doppelganger
- [sage-support] Re: How to define ... darwin doppelganger
- [sage-support] Re: How to define ... Simon King
- Re: [sage-support] Re: How to... Santanu Sarkar
- Re: [sage-support] How to define ... 'Justin C. Walker' via sage-support