#11783: bug in DirichletGroup and/or DirichletCharacter when the modulus is 1
-----------------------------+----------------------------------------------
   Reporter:  was            |          Owner:  was       
       Type:  defect         |         Status:  new       
   Priority:  major          |      Milestone:  sage-4.7.2
  Component:  number theory  |       Keywords:            
Work_issues:                 |       Upstream:  N/A       
   Reviewer:                 |         Author:            
     Merged:                 |   Dependencies:            
-----------------------------+----------------------------------------------
 Observe that the value of chi(1) below depends on whether
 {{{chi.values()}}} is called first.   Thus there is certainly a bug.  I
 think we should always have {{{chi(1)=1}}}, since {{{gcd(1,1)=1}}}; this
 is also consistent with the rule that if psi is trivial but not primitive,
 then {{{psi(n)=1}}} for all n coprime to the modulus of psi.

 See this thread:
 http://groups.google.com/group/sage-
 devel/browse_thread/thread/fa94a97612c7225b

 {{{
 wstein@ubuntu:~$ sage
 ----------------------------------------------------------------------
 | Sage Version 4.7.2.alpha2, Release Date: 2011-08-18                |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 **********************************************************************
 *                                                                    *
 * Warning: this is a prerelease version, and it may be unstable.     *
 *                                                                    *
 **********************************************************************
 sage: chi = DirichletGroup(1)[0]
 sage: chi(1)
 1
 sage: chi.values()
 [1]
 sage:
 Exiting Sage (CPU time 0m0.09s, Wall time 0m18.02s).
 wstein@ubuntu:~$ sage
 ----------------------------------------------------------------------
 | Sage Version 4.7.2.alpha2, Release Date: 2011-08-18                |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 **********************************************************************
 *                                                                    *
 * Warning: this is a prerelease version, and it may be unstable.     *
 *                                                                    *
 **********************************************************************
 sage: chi = DirichletGroup(1)[0]
 sage: chi.values()
 [0]
 sage: chi(1)
 0
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11783>
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