[sage-support] Re: Reducing coefficients

2018-06-21 Thread Dima Pasechnik
On Thursday, June 21, 2018 at 11:26:37 PM UTC+1, Andrew wrote: > > If by mapping to R you mean applying > > sage: R( f ) > > then, no, this doesn't work. I'll see if I can post an example to make > this more concrete. > Perhaps f.change_ring(R) would work (this is what you do if f is a

[sage-support] Re: Reducing coefficients

2018-06-21 Thread Andrew
If by mapping to R you mean applying sage: R( f ) then, no, this doesn't work. I'll see if I can post an example to make this more concrete. Andrew On Thursday, 21 June 2018 15:51:31 UTC+2, slelievre wrote: > > Have you tried defining > > sage: R. = LaurentPolynomialRing(QQ) > > and

[sage-support] Re: Reducing coefficients

2018-06-21 Thread slelievre
Have you tried defining sage: R. = LaurentPolynomialRing(QQ) and maping everything to R so it gets simplified? -- 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

[sage-support] Reducing coefficients

2018-06-21 Thread Andrew
I am using sage to find some basis elements in a CombinatorialFreeModule that have some nice properties. To do this I work in a large polynomial ring and solve a corresponding system of equations. The algebra that I am working in is itself defined over a polynomial ring, say ZZ[h, q, ,q^-1,