Skip to content
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

confusing behaviour of pAdicField with series_print == False #12

Closed
sagetrac-dmharvey mannequin opened this issue Sep 12, 2006 · 1 comment
Closed

confusing behaviour of pAdicField with series_print == False #12

sagetrac-dmharvey mannequin opened this issue Sep 12, 2006 · 1 comment

Comments

@sagetrac-dmharvey
Copy link
Mannequin

sagetrac-dmharvey mannequin commented Sep 12, 2006

The following behaviour, while strictly speaking not incorrect, is quite confusing:

sage: K = pAdicField(5, series_print=False)
sage:  K(37, prec=1)
 5^0 * (37 + O(5^1))

Really, it should be reducing 37 mod 5 when you do the conversion, or at the very least when you print it out, otherwise you don't realise that 37 + O(5) and 7 + O(5) are really the same thing. (This caused me a few hours of head-scratching today because I thought that two things didn't agree when actually they did.)

If you use the default series_print=True, then this doesn't happen:

sage: K = pAdicField(5)
sage:  K(37, prec=1)
 2 + O(5)

Component: basic arithmetic

Issue created by migration from https://trac.sagemath.org/ticket/12

@williamstein
Copy link
Contributor

comment:1

This option doesn't exist anymore....

vbraun pushed a commit that referenced this issue Oct 8, 2023
Made the new relabelling functions in OA more efficient, removed an import of the CA class which no longer exists
tobiasdiez pushed a commit to tobiasdiez/sage that referenced this issue Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant