DirichletGroup(1)[0] values?

13 views
Skip to first unread message

Matthew Alderson

unread,
Sep 6, 2011, 8:46:39 AM9/6/11
to sage-...@googlegroups.com
Hello,

I'm using Sage 4.6.2 on my local machine and when I use the command

DirichletGroup(1)[0].values()

it gives me the correct values (namely [1]). However, in Sage 4.7.1, it seems to return [0], which is 
false since everything is coprime to 1. 

Thank you,

Matt

John Cremona

unread,
Sep 6, 2011, 12:07:48 PM9/6/11
to sage-...@googlegroups.com
On my 4.7.1 I get [1] as expected. That's on my own build on ubuntu.

John

> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to
> sage-devel+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>

Adam Webb

unread,
Sep 6, 2011, 1:57:12 PM9/6/11
to sage-devel


On Sep 6, 6:46 am, Matthew Alderson <alderson.matt...@gmail.com>
wrote:
I also get [0] in 4.7.1. This is built from source on Ubuntu 11.04
running in a virtual machine (32 bit and 64 bit versions).

Adam

Dima Pasechnik

unread,
Sep 6, 2011, 2:16:31 PM9/6/11
to sage-...@googlegroups.com
on macosx 10.6 x_64 with Sage 4.7.1 built from source I get [0]
And the same on Linux x64 with Sage 4.7.

William Stein

unread,
Sep 6, 2011, 2:16:53 PM9/6/11
to sage-...@googlegroups.com

I get both (!):

http://trac.sagemath.org/sage_trac/ticket/11783

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


>
> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>

--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

Justin C. Walker

unread,
Sep 6, 2011, 2:53:48 PM9/6/11
to sage-...@googlegroups.com

On Sep 6, 2011, at 11:16 , William Stein wrote:

> On Tue, Sep 6, 2011 at 10:57 AM, Adam Webb <maxth...@googlemail.com> wrote:
>>
>>
>> On Sep 6, 6:46 am, Matthew Alderson <alderson.matt...@gmail.com>
>> wrote:
>>> Hello,
>>>
>>> I'm using Sage 4.6.2 on my local machine and when I use the command
>>>
>>> DirichletGroup(1)[0].values()
>>>
>>> it gives me the correct values (namely [1]). However, in Sage 4.7.1, it
>>> seems to return [0], which is
>>> false since everything is coprime to 1.
>>>
>>> Thank you,
>>>
>>> Matt
>>
>>
>> I also get [0] in 4.7.1. This is built from source on Ubuntu 11.04
>> running in a virtual machine (32 bit and 64 bit versions).
>>
>> Adam
>
> I get both (!):

This may be an issue of good garbage vs. bad garbage. I just tried both your (was) and the OP's examples on versions of sage back to 2.11, and get much the same varying behavior.

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
Men are from Earth.
Women are from Earth.
Deal with it.
--------

Justin C. Walker

unread,
Sep 6, 2011, 2:57:45 PM9/6/11
to SAGE Development

On Sep 6, 2011, at 11:53 , Justin C. Walker wrote:

>
> On Sep 6, 2011, at 11:16 , William Stein wrote:
>
>> On Tue, Sep 6, 2011 at 10:57 AM, Adam Webb <maxth...@googlemail.com> wrote:

>>> I also get [0] in 4.7.1. This is built from source on Ubuntu 11.04
>>> running in a virtual machine (32 bit and 64 bit versions).
>>>
>>> Adam
>>
>> I get both (!):
>
> This may be an issue of good garbage vs. bad garbage. I just tried both your (was) and the OP's examples on versions of sage back to 2.11, and get much the same varying behavior.

I should mention that these versions were all built on some flavor of Mac OS X, going back to whatever I was running back in March, 2008 :-}.

Justin

--
Justin C. Walker, Curmudgeon-At-Large

Institute for the Enhancement of the Director's Income
--------
Experience is what you get
when you don't get what you want.
--------

Reply all
Reply to author
Forward
0 new messages