[sage-support] Re: How to define variables over integer

2019-05-08 Thread darwin doppelganger
I forgot to add that you can automatically put the variables in a list with: Z = list(V.gens()) -- 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+un

[sage-support] Re: How to define variables over integer

2019-05-08 Thread darwin doppelganger
Doesn't PolynomialRing() do what you want? For example, n=4 V=PolynomialRing(QQ,n+1,['z%d'%(i) for i in range(n+1)] ) V.inject_variables() -- You received this message because you are subscribed to the Goo

[sage-support] How to define variables over integer

2019-05-08 Thread Santanu Sarkar
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] bu