-
-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sorted variables in multivariate polynomial ring wrong order #17550
Comments
comment:1
Still there in 6.6 |
comment:2
Polynomial rings have a monomial order which should affect how monomials (and hence terms) compare:
|
comment:3
By default sage uses 'degrevlex' for term orders. This is somehow standard in multivariate polynomial rings. I would not change this default. If you want a>b I suggest you to use 'deglex' term order instead. I propose to resolve the ticket as wontfix. |
comment:4
Replying to @lftabera:
I agree with you that this is related to the term orders. Yet, the order on the variables themselves doesn't change between "degrevlex" and "deglex". This is due to the fact that there are two distinct changes between these two orders. |
comment:5
Replying to @nbruin:
I understand that the original posted "problem" is not one, since we use "degrevlex", but using "lex" or "deglex" the output of the lines above should definitely start with |
comment:6
Replying to @lftabera:
Understood.
To get something out of it, e should at least mention this in the docstrings more explicitly. |
Work Issues: document this better |
comment:7
Replying to @bgrenet:
What do you mean by this? This should (IMHO) change... |
comment:8
Replying to @dkrenn:
This is described in the reference manual http://doc.sagemath.org/html/en/reference/polynomial_rings/sage/rings/polynomial/term_order.html. The "two changes" I mentioned are the fact that in "degrevlex" one considers the last variable whose exponent is larger while in "deglex" one considers the first variable whose exponent is smaller. Thus, if you have as first variable
Note that, unless I make a mistake, all orders defined in SageMath satisfy I do not understand what you mean by "This should change". The way the orders are defined in SageMath seems consistent with the literature and the other softwares. |
comment:9
Let us close this as invalid. |
Changed work issues from document this better to none |
We have
which looks weird to me and is not what one would expect.
This is also inconsistent with
(but in this case the ordering seems always to be alphabetically.)
However, in the multivariate polynomial ring this ordering depends on the definition:
Component: algebra
Issue created by migration from https://trac.sagemath.org/ticket/17550
The text was updated successfully, but these errors were encountered: