-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
Division of polynomials produces errors when using local orderings #17638
Comments
comment:2
Example:
|
comment:3
As far as I remember, in the definition of the division of two polynomials, it checks first if the denominator is a unit. If it is, it divides each monomial by the indepent coefficient of the polynomial. There may be two possible solutions. The simple one would be to change this behavior for the division. A more permanent one, which was discussed in this thread proposes to create a new class of localized rings. |
comment:4
Note that this is the code of "div" for multivariate polynomial rings:
So, it is tested with the libsingular function !p_IsConstant whether the divisor is constant, hence, we can divide by the leading coefficient. I bet !p_IsConstant assumes a positive ordering and just tests whether the leading monomial is of degree zero. |
Changed keywords from none to Singular |
comment:7
I checked the example again and it now works, is this fixed?
|
comment:8
Replying to @mckenziewest:
In any case, it deserves a dedicated doctest to prevent future regression. |
Changed keywords from Singular to Singular, days94 |
Commit: |
New commits:
|
comment:12
This looks good to me. Note that the Just one question, would it better if the test appears in src/sage/rings/polynomial/multi_polynomial_element.py? This is where the code in question is executed... |
Author: Mckenzie West |
comment:13
I added the test to the definition of |
comment:14
yes, sorry, I was thinking of the method |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:18
For reference, there is some documentation about formatting on the developer guide, see http://doc.sagemath.org/html/en/developer/coding_basics.html#python-code-style In particular, you can add spacing between About the
it the secure way to write
is equivalent to the previous one. However,
is equivalent to
which is therefore equivalent to:
[My personal preference goes to first and third, but it is up to you] What was wrong in the commit 989c4fc (comment 10) was
wich will print both a dot and a column, but i fear that now you removed both, while it might be good to keep a column. |
This comment has been minimized.
This comment has been minimized.
comment:24
Discussed on sage-devel at: |
comment:26
Setting new milestone based on a cursory review of ticket status, priority, and last modification date. |
comment:27
Setting a new milestone for this ticket based on a cursory review. |
comment:30
Replying to @vbraun:
The merge conflict has magically healed by itself. |
comment:32
Merge failure on top of: 341d434082 Trac #33834: Fix map_reduce doctest 40dfa7a1a3 Trac #33828: Fix conda workflow b90120d1cf Trac #33761: OpenSSL 3.0.3 security update bdcb741 Trac #33700: Developer's guide: Expand on GitHub accounts and SSH keys bf6aeb9 Updated SageMath version to 9.6 reviewer u'\u200bLuis Felipe Tabera Alonso, Thierry Monteil' does not look right |
Changed reviewer from Luis Felipe Tabera Alonso, Thierry Monteil to Luis Felipe Tabera Alonso, Thierry Monteil |
comment:34
removed the offending character |
Changed branch from u/mwest/division_of_polynomials_produces_errors_when_using_local_orderings to |
Consider two polynomials f,g in a ring define using a local ordering, e.g.,
If the leading monomial of g is 1 then f/g will produces a wrong result, namely f divided by the independent coefficient of g. Note that in that case g.is_unit() yields True, since for Singular R is not Q[x,y] but the ordering localization (i.e., one can divide by the polynomials whose leading monomial is 1).
PS: It is my first ticket, I apologize for the mistakes.
CC: @simon-king-jena @sagetrac-jakobkroeker @slel
Component: commutative algebra
Keywords: Singular, days94
Author: Mckenzie West
Branch/Commit:
8dd8ebe
Reviewer: Luis Felipe Tabera Alonso, Thierry Monteil
Issue created by migration from https://trac.sagemath.org/ticket/17638
The text was updated successfully, but these errors were encountered: