Ask Your Question

SyzyAlex's profile - activity

2022-09-26 21:29:00 +0200 received badge  Notable Question (source)
2021-04-24 19:55:21 +0200 received badge  Popular Question (source)
2016-02-26 15:19:39 +0200 received badge  Scholar (source)
2016-02-19 22:11:41 +0200 asked a question The degree of a poynomial in a quotient ring

Hello,

I am defining a ring, R, two polynomials, p1 and p2, an ideal, I=<p1>, the quotient ring S=R/I, and then I compute p2 in the new ring:

sage: R.<x,y>=QQ[]

sage: p1=x-y

sage:p2=x^2+y^2

sage: I=ideal(p1)

sage: S=R.quotient_ring(I)

sage: q=p2.change_ring(S)

sage: q

2*ybar^2

When I compute the degree of q I get:

sage: d=q.degree()

sage: d

0

and I want to get d=2. Can anybody tell me how can I obtain d=2?