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
behaviour of the norm function in the p-adic ring #5105
Comments
comment:1
3.4 is for ReST tickets only. Cheers, Michael |
comment:2
There is a confusion of terminology here. It's the "field norm" that's defined for p-adics. Thus
So
is correct, as is
What you're wanting is usually called the p-adic absolute value (it's a norm in the functional analysis sense). It would be
and get 1/11. This isn't currently defined, if z is an element of a padic field, the absolute value can be obtained as
|
comment:4
I thought this looked good, and it applied ok to 3.4.1.rc1, but I got a whole lot of doctest failures in sage/rings/padics:
Most look like this:
while there also some simpler ones:
and
I have absolutely no idea what in the patch has caused this, but it needs to be looked at! |
comment:6
I guess this is reviewed by #5778 and the issues reported here due to doctest failures have been fixed there. Cheers, Michael |
Implements abs() and exlains the difference between it and norm() |
comment:7
Attachment: trac_5105.patch.gz Positive review due to #5778 - credit goes to RobertWB. Cheers, Michael |
comment:8
Merged in Sage 4.0.alpha0. Cheers, Michael |
Reviewer: Robert Bradshaw |
Merged: 4.0.alpha0 |
Author: David Roe |
The p-adic norm seems to be defined differently in SAGE to the standard textbook definition, in which it is usually normalized so that$|p|=1/p$ , but this is what SAGE does:
Would it be possible to swap it round so that the norm of 11 is given as 1/11?
Component: padics
Author: David Roe
Reviewer: Robert Bradshaw
Merged: 4.0.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/5105
The text was updated successfully, but these errors were encountered: