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
Problem displaying a number field (fractional) ideal #25934
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
Since the field discriminant is less than |
comment:3
Replying to @JohnCremona:
That's such a special case, I'm not convinced that it's worth it. |
comment:4
Replying to @JohnCremona:
Indeed. So I would say that this heuristic bound of the discriminant is not sufficient to predict that the class group is easy to compute. |
comment:5
I asked pari-dev. |
comment:6
From Karim Belabas's answer on pari-dev:
|
comment:9
There is something strange here. Nothing to do with the representation if ideals really. For this field, if you construct its pari_bnf, it takes ages to return even with no output:
but in a fresh Sage session, if I interrupt the second line immediately and then rerun it:
Also, after this, displaying K.ideal(1,1) is instantaneous. So I think that there is a bug in here, though I cannot tell what is happening. Simplifying further:
while again, interrupting immediately and reissuing the last line gives the output immediately. Lastly,
|
comment:10
What about 9.3.beta6? Sage 8.3.rc1 is not very relevant unless you precisely bisect where the problem is. |
comment:11
(implicit note: I can not reproduce on 9.3.beta6) |
comment:12
The original posting was for an old version, but everything I wrote in the last 24 hours has been for 9.2, running on ubuntu, built from source. |
comment:13
Ah, and when I try on 9.3.beta6 is is fine. That's good! I'll mark this as invalid / won't-fix as something has fixed it between 9.2 and now. |
comment:14
Maybe cypari2 upgrade #31029? |
comment:16
Any way to add a doctest for this? |
comment:17
Replying to @slel:
Sure: the 2 lines of the original post should do. |
Branch: u/cremona/25934 |
Commit: |
comment:19
I added a doctest as suggested. No code changes. New commits:
|
Author: John Cremona |
comment:20
Review please? The patch just adds one tiny doctest. |
Changed keywords from none to NumberField, ideal |
Reviewer: Frédéric Chapoton, Samuel Lelièvre |
Changed branch from u/cremona/25934 to |
With 8.3.rc1:
takes a long time to return -- why? Using %time it immediately shows 1ms for the second line but the prompt does not appear until minutes later. So it is the display of the ideal which is triggering something long. In a new session:
CC: @jdemeyer @slel
Component: number fields
Keywords: NumberField, ideal
Author: John Cremona
Branch/Commit:
1e45e42
Reviewer: Frédéric Chapoton, Samuel Lelièvre
Issue created by migration from https://trac.sagemath.org/ticket/25934
The text was updated successfully, but these errors were encountered: