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. -- 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/CAOe8sPKEKd0DEWaz-4fWpu5MemssWHUtrNJwaLOS_dCvTkTUXg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.