Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question
1

How to compute top-degree homogenization of ideal

asked 0 years ago

Atropos7 gravatar image

updated 0 years ago

Max Alekseyev gravatar image

I am interested in computing the "top-degree homogenization of an ideal", the ideal generated by the top-degree homogeneous components of every element in a polynomial ideal I.

I had previously been (mistakenly) doing:

ideal([f(list(R.gens()) + [0]) for f in I.homogenize().gens()])

which gives the ideal generated by the top-degree homogeneous components of the given generators of I.

This is not the same: consider I=(x2+x,x2+y). The above code would produce (x2), but the top-degree homogenization should contain xy (as the top-degree component of (x2+x)(x2+y)).

Are there known techniques for doing this?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 0 years ago

Max Alekseyev gravatar image

updated 0 years ago

This should do the job:

R.<x,y> = QQ[]
I = R.ideal([x^2+x, x^2+y])
J = R.ideal([f.homogeneous_components()[f.degree()] for f in I.groebner_basis()])
print(J)
Preview: (hide)
link

Comments

Thank you! It had totally slipped my mind that the top-degree components of a groebner basis for I would be a groebner basis for the ideal I want.

Atropos7 gravatar imageAtropos7 ( 0 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 0 years ago

Seen: 234 times

Last updated: Sep 23 '24