Ask Your Question

hshackle's profile - activity

2022-10-20 18:47:33 +0200 received badge  Notable Question (source)
2022-02-15 09:54:20 +0200 received badge  Nice Question (source)
2022-02-15 04:40:29 +0200 received badge  Famous Question (source)
2021-10-17 20:43:47 +0200 received badge  Popular Question (source)
2021-02-23 23:17:25 +0200 received badge  Notable Question (source)
2021-02-23 23:17:25 +0200 received badge  Popular Question (source)
2020-04-01 03:07:39 +0200 asked a question Express Groebner basis in terms of original basis

Working with a polynomial ring $R$, if I have an ideal generated by a set of polynomials $f_i$ (taking two for concreteness), I can obtain a Groebner basis $g_j$ by the commands

I = R.ideal([f1, f2])
g = I.groebner_basis()

What I want to do is express the Groebner basis in terms of the original basis, i.e. $g_j = \sum_i a_{ij} f_i$. How can I accomplish this in Sage? My understanding is that such an expression is calculated implicitly when the Groebner basis is calculated, so perhaps it is possible to recover it directly from the algorithm.

2020-03-31 01:00:57 +0200 commented answer Polynomial division in quotient rings?

That's much appreciated, thank you. One final question on the extra variables that you add, just to make sure I'm understanding - the reduce function does the reduction in a reduced Groeber basis, and this procedure should cause problems if the original basis isn't a Groeber basis, correct? It seems that if the original basis isn't a Groebner basis, we get higher powers of c1 and c2 in the remainder (although there's always only one unique power of c1 and c2 involved in the remainder). Taking the coefficients corresponding to these higher powers of c1 and c2 seem to still give sensible answers for the quotients in the cases that I've considered, but I haven't been able to convince myself that this is always the correct thing to do.

2020-03-30 06:08:07 +0200 received badge  Scholar (source)
2020-03-30 06:08:04 +0200 received badge  Supporter (source)
2020-03-30 06:08:02 +0200 commented answer Polynomial division in quotient rings?

Thanks! This is very helpful. Do you if the division algorithm they reference (or in general, division by several polynomials) is implemented in Sage?

2020-03-29 20:30:03 +0200 received badge  Student (source)
2020-03-29 17:57:07 +0200 asked a question Polynomial division in quotient rings?

I have a working example shown below to help explain my question.

R.<x> = GF(2)[];
I = R.ideal([x^2 - 1])
S.<u> = R.quotient_ring(I)
f = x^2 + x
g = x
print(f.quo_rem(g))
f = u^2 + u
g = u
print(f.quo_rem(g))

The first quo_rem call works fine, but the second does not. Is polynomial division not supported for quotient rings, or am I calling it the wrong way? I'm specifically interested in doing this for multivariate polynomials, but I can't seem to get it to work for a single variable either.

Related to the question, I am interested in understanding this division in quotient rings better. If the operation isn't supported in sage, any sort of references/algorithms on how to do such a calculation would be very helpful and appreciated.