Ask Your Question
2

How can I assign different degrees to the variables of a polynomial ring?

asked 2019-07-29 07:07:55 +0100

Laughematician760 gravatar image

In defining a polynomial ring, is there any way to assign varying degrees to the variables?

For example I want to define the polynomial ring Q[x, y, z] but I want x to be of degree 1, y to be degree 2, and z to be degree 3. I am looking for a way to do this in general not just for a small number of variables.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-07-29 19:26:04 +0100

updated 2019-07-30 01:30:41 +0100

You can use "weights":

sage: P.<x,y,z> = PolynomialRing(QQ, 3, order=TermOrder('wdeglex',(1,2,3)))
sage: x.degree()
1
sage: z.degree()
3

I think this is not documented very well, or at least I didn't discover it easily. See http://doc.sagemath.org/html/en/refer... and http://doc.sagemath.org/html/en/refer....

edit flag offensive delete link more

Comments

Was there something else you intended to include or was that third and a mistake?

Laughematician760 gravatar imageLaughematician760 ( 2019-07-29 20:41:32 +0100 )edit

A mistake. I was going to give the links in the other order and then decided that I preferred this order instead.

John Palmieri gravatar imageJohn Palmieri ( 2019-07-30 01:31:08 +0100 )edit

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: 2019-07-29 07:07:55 +0100

Seen: 431 times

Last updated: Jul 30 '19