#4837: implement random_element for number fields
-----------------------------------------+----------------------------------
Reporter: AlexGhitza | Owner: AlexGhitza
Type: enhancement | Status: new
Priority: major | Milestone: sage-3.4
Component: number theory | Resolution:
Keywords: random element number field |
-----------------------------------------+----------------------------------
Comment (by AlexGhitza):
OK, the attached patch implements the simple idea given above. More
precisely: let a be a primitive element of K, then every element of K can
be written as a polynomial of degree (at most) [K:QQ]-1 in the variable a,
with rational coefficients. Therefore the function returns a random
polynomial of this type.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4837#comment:1>
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
-~----------~----~----~----~------~----~------~--~---