#4837: implement random_element for number fields
---------------------------+------------------------------------------------
 Reporter:  AlexGhitza     |       Owner:  AlexGhitza                 
     Type:  enhancement    |      Status:  new                        
 Priority:  major          |   Milestone:  sage-3.4                   
Component:  number theory  |    Keywords:  random element number field
---------------------------+------------------------------------------------
 At the moment, if K is a number field then K.random_element() uses a
 generic implementation that simply returns a random *integer* coerced into
 K.  It would be useful to have a real implementation that returns an
 actual random element of K.

 A simple idea would be to find a primitive element j that generates K as a
 field extension over QQ, and to return a random polynomial of degree at
 most [K:QQ].  This should be easy since random polynomials in one variable
 are already implemented.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4837>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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