Processing math: 100%
Ask Your Question
1

Calculating Groebner base with constants

asked 1 year ago

updated 1 year ago

slelievre gravatar image

I want to see what the Groebner base of an ideal is, but the polynomials generating it have some constants inside. Is there any way to do that with Sage?

var('a')
R.<x,y> = PolynomialRing(CC, 2, order='lex')
I = ideal(y^4*a, y^2*x - y*a - x, y - x*a)
B = I.groebner_basis()
B

This doesn't seem to work. a is the constant. Also, this example is just a dummy, I want to know in general how to have constant coefficient in polynomials.

Preview: (hide)

Comments

See https://ask.sagemath.org/question/666... especially " see more comments"

achrzesz gravatar imageachrzesz ( 1 year ago )

1 Answer

Sort by » oldest newest most voted
1

answered 1 year ago

Max Alekseyev gravatar image

updated 1 year ago

Don't mix up polynomial variables with symbolic ones. Instead introduce your symbolic constants also as polynomial variables - like: R.<x,y,a> = PolynomialRing(QQ).

On a related note, polynomial machinery does not work over inexact fields like CC - use QQ, QQ[I], AA or QQbar instead. See this answer for more details.

Preview: (hide)
link

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: 1 year ago

Seen: 210 times

Last updated: Jun 06 '23