#3045: [with patch, needs review] K.gen() where K = GF(p) returns 1, not a
primitive element
---------------------------+------------------------------------------------
Reporter: jxxcarlson | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-3.4.1
Component: number theory | Resolution:
Keywords: galois field |
---------------------------+------------------------------------------------
Changes (by AlexGhitza):
* summary: K.gen() where K = GF(p) returns 1, not a primitive element =>
[with patch, needs review] K.gen() where K =
GF(p) returns 1, not a primitive element
Comment:
This is actually the correct behaviour. The function that returns a
primitive element is K.multiplicative_generator(), not K.gen(). There was
some inconsistency in the docstrings of the various types of finite
fields, which is fixed by the attached patch.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3045#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
-~----------~----~----~----~------~----~------~--~---