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
p-adic square root #23344
Comments
comment:1
Doesn't this already work? This field
The syntax |
comment:2
If I am not mistaken, with the version of sage I am working with (8.0.rc0), the square root is working fine for elements of Qp (even if Qp is embeded in an extension) but not for elements of an extension of Qp (not in Q_p). Continuing your example :
Another example which motivates my tickets since I am implementing in sagemath an improved version of the AGM algorithm :
|
comment:3
Replying to @dlubicz:
I agree. The current implementation just calls off to Pari (see line 2774 in |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Commit: |
Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:
|
Changed branch from u/roed/ramified_extensions_of_general_p_adic_rings_and_fields to u/roed/23344/2adic_sqrt |
comment:12
Several comments:
|
comment:13
By the way, this ticket only implements
|
comment:14
Replying to @xcaruso:
Yeah, I think that's correct. It would be nice to have it also include an implementation for other primes, but that's not currently in the code. |
comment:15
My answer to the first comments of Xavier:
|
Changed branch from u/roed/23344/2adic_sqrt to u/caruso/23344/2adic_sqrt |
comment:17
I've pushed a new implementation which works over any extension of PS: I've deleted your code; feel free to revert my changes if you think that it's appropriate. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:19
I've extended my implementation to all p-adic fields (including ramified extensions of Q_2). Needs review. |
Changed branch from u/caruso/23344/2adic_sqrt to u/lubicz/23344/2adic_sqrt |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:22
In
|
Author: Xavier Caruso |
Reviewer: David Lubicz |
comment:25
patchbot reports failing doctests.. |
comment:26
It looks like many of the failures result from different choices of square root, but I agree that they need to be fixed. |
Changed branch from u/lubicz/23344/2adic_sqrt to u/caruso/23344/2adic_sqrt |
comment:29
As David pointed out, the issue was due to the choice/ordering of square roots (which was not consistent when precision varies). I fixed it. Let's see what the patchbot says now. |
This comment has been minimized.
This comment has been minimized.
comment:31
bot is green |
comment:32
OK. So, I give a positive review to this ticket again. |
Changed branch from u/caruso/23344/2adic_sqrt to |
This ticket implements square root over p-adic fields (i.e. finite extension of Qp)
CC: @roed314 @xcaruso
Component: padics
Author: Xavier Caruso
Branch/Commit:
3085538
Reviewer: David Lubicz
Issue created by migration from https://trac.sagemath.org/ticket/23344
The text was updated successfully, but these errors were encountered: