#9400: modify the NumberField constructor to pass in optional integer B such 
that
all the internal pari routines will replace the discriminant by its gcd
with B, making some things massively faster.
-----------------------------+----------------------------------------------
   Reporter:  was            |       Owner:  davidloeffler
       Type:  enhancement    |      Status:  needs_review 
   Priority:  major          |   Milestone:  sage-4.6     
  Component:  number fields  |    Keywords:               
     Author:                 |    Upstream:  N/A          
   Reviewer:                 |      Merged:               
Work_issues:                 |  
-----------------------------+----------------------------------------------
Changes (by jdemeyer):

  * milestone:  sage-4.5.3 => sage-4.6


Comment:

 Always using {{{gens()}}} for printing is also silly, because for larger
 degrees you can get something like:

 {{{
 sage: x=polygen(QQ); K.<a> = NumberField(x^8+x-1);
 sage: J1 = K.ideal(a+1); J2 = K.ideal(a+2); J = J1.intersection(J2)
 sage: J
 Fractional ideal (a^2 + 249, -a^7 + 125, a + 2, a^3 + 8, a^4 + 237, -a^7 -
 a^6 + 189, a^7 + a^6 + a^5 + 96, 253)
 }}}

 In my opinion, the best way would be to use {{{idealtwoelt()}}} for large
 discriminants instead of simply printing all generators (or alternatively:
 reduce the generators using {{{idealtwoelt()}}} in {{{__init__}}}).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9400#comment:14>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to