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

2019-05-09 Thread Santanu Sarkar
Dear friends, Thank you so much for your help. It is working now. Regards, Santanu On Thu, 9 May 2019 at 15:19, Simon King wrote: > Hi Santanu, > > Am Mittwoch, 8. Mai 2019 15:15:06 UTC+2 schrieb Santanu: >> >> I know how to define variables over BooleanPolynomialRing. >> This is as follows.

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

2019-05-09 Thread Simon King
Hi Santanu, Am Mittwoch, 8. Mai 2019 15:15:06 UTC+2 schrieb Santanu: > > 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() > The above is what you could do *in an interact

[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