On 5 August 2016 at 19:59, John Cremona <[email protected]> wrote: > Andrew Sutherland reports the following: > > After > > x = polygen(QQ) > R = QQ[x] > pol = R([-1,-3,6,4,-5,-1,1]) > K = NumberField(pol,'a') > I = K.ideal([1,1]) > > all is well, but then > > I > > (to display the unit ideal) takes a long, and variable, time. What is > going on? (Don't bother telling me that it is silly to repeat the > ideal generator, we extracted this from more complicated code while > debugging.)
More information: this apparently only happens the first time a number field is created: "If you press ctrl-c you will see it is stuck inside pari's bnfinit (which is why I did not initially report it to Sage). If you then execute the command again it will work fine (or more generally, if you do just about anything else with pari number fields before executing the problematic line it will work fine. I cannot reproduce the problem in pari, which is why I have not reported it to them either. There is something very weird going on that appears to only happen the first time Sage calls bnfinit, and it is specific to this field. This is why we rarely see the problem on www.lmfdb.org, but occasionally do." > > John -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
