-
-
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
Polynomials over inexact rings should not truncate inexact leading zeroes #5075
Comments
comment:2
A closely related issue is #3979. |
Attachment: trac_5075.patch.gz In progress. I think it fixes the problem, but I'm working on a larger project for p-adic polynomials that this is part of. |
Attachment: trac_5075.2.patch.gz rebased against 4.0 |
comment:3
I tried to apply this against 4.7.1.rc1 and got a bunch of merge failures in power_series_poly.pyx. Probably another trivial rebase is needed. |
comment:6
David, could you give us a rebase for sage 6.1? I know you're doing a lot of other work for padics, but we're trying to solve a more basic issue with power series comparison at #9457. Power series over padics are a confusing obstacle there, and we wanted to see if the patch here would help. Here's the specific bug we're trying to track down (in sage 6.1): Power series over p-adics are changing inexact zeros to exact zeros -- this looks similar to the problem with polynomials on this ticket, but notice that the problem happens even for p-adics:
There is a problem with multiplication of a p-adic by an element of the power series ring, which might be caused by the problem above:
Note that there is a similar problem for more general power series ring over power series ring:
My hope is that starting with a rebase of this patch would be a step toward solving this problem. Perhaps it will have to be extended to power series over inexact rings too. Unfortunately I don't understand the current status of padics well enough to do this rebase myself. |
Stopgaps: todo |
comment:10
Ping. Is this issue due to be resolved by other developments on p-adics? |
comment:11
Ping again. The original example still behaves the same way in Sage 8.0. |
There is a problem also with the evaluation of p-adic polynomials whose leading coefficient is an inexact zero. It looks like inexact leading zeros are treated as exact zeros, resulting in wrong precisions. For example:
Here, the value f(1) should be 1 + O(2), not 1 + O(2^20). |
The generic polynomial class truncates leading zeroes, and this can cause problems when working over an inexact ring in which is_zero can return True even for an inexact zero (e.g., see #2943). Here is a simple example:
This was recognized earlier for p-adics and fixed (I'm not sure which ticket this was):
The other main class of inexact rings are interval fields, but I believe for those is_zero returns False for an inexact zero, so this doesn't come up.
CC: @sagetrac-dmharvey @nilesjohnson @categorie
Component: algebra
Keywords: polynomials, power series, inexact rings
Stopgaps: todo
Issue created by migration from https://trac.sagemath.org/ticket/5075
The text was updated successfully, but these errors were encountered: