Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question
2

Groebner Basis with transcendental coefficients?

asked 5 years ago

Losty gravatar image

updated 5 years ago

slelievre gravatar image

I would like to compute on Sage a Groebner basis generated by a set of polynomials containing coefficients like exp(2/10) without rounding the coefficients, for example:

f1=e1/2x2e3/50yx

f2=e3/20x+xy2

Is there a simple way to do that? I tried to create an extension of QQbar including the transcendental coefficients, but I could not successfully do it. Any help would be greatly appreciated!

Preview: (hide)

Comments

2

Why not define a new variable z (instead of exp1/50), then work algebraically... ?!

dan_fulea gravatar imagedan_fulea ( 5 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 5 years ago

tmonteil gravatar image

You can define your field as a fraction field as follows:

sage: S.<em100> = QQbar[]
....: K = S.fraction_field()
sage: K
Fraction Field of Univariate Polynomial Ring in em100 over Algebraic Field

Here, i used the name em100 to model the transcendent number e100

Then, you can do:

sage: R.<x,y> = K[]
sage: f1 = em100^50*x^2-em100^6*y*x
sage: f2 = em100^15*x + x*y^2
sage: I = R.ideal([f1,f2])

sage: I
Ideal (em100^50*x^2 + (-em100^6)*x*y, x*y^2 + em100^15*x) of Multivariate Polynomial Ring in x, y over Fraction Field of Univariate Polynomial Ring in em100 over Algebraic Field

sage: I.groebner_basis()
[x*y^2 + em100^15*x, x^2 + ((-1)/em100^44)*x*y]
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: 5 years ago

Seen: 663 times

Last updated: May 27 '19