#10836: primitive root is broken
------------------------------------------------------------------+---------
Reporter: kcrisman |
Owner: was
Type: defect |
Status: needs_review
Priority: critical |
Milestone: sage-4.7
Component: number theory |
Keywords:
Author: Karl-Dieter Crisman, William Stein, Jeroen Demeyer |
Upstream: Reported upstream. Developers deny it's a bug.
Reviewer: William Stein, Karl-Dieter Crisman |
Merged:
Work_issues: |
------------------------------------------------------------------+---------
Comment(by jdemeyer):
Replying to [comment:21 kcrisman]:
> Do negative integers have primitive roots? I have never heard this. I
understand the extension of the definition, but a generator of "Z/(-5)Z"
somehow seems different to me than a "primitive root of -5". I was able
to [http://www.wolframalpha.com/input/?i=PrimitiveRoot%5B-5%5D crash !W|A]
with this, incidentally :)
Well, I think we should decide what we do with negative integers: either
raise an exception or return a sensible value. It seemed artificial to me
not to allow negative numbers. Also PARI/GP computes primitive roots of
negative numbers.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10836#comment:22>
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.