[sage-support] Re: Numerical evaluate of the Dirichlet character value

2008-09-24 Thread William Stein
` On Wed, Sep 24, 2008 at 4:42 AM, John Cremona <[EMAIL PROTECTED]> wrote: > > 2008/9/24 mabshoff <[EMAIL PROTECTED]>: >> >> >> >> On Sep 24, 4:15 am, Raouf <[EMAIL PROTECTED]> wrote: >>> Hi, >>> I want to have a numerical value of a Dirichlet character : >>> >>> I have this line code in my note

[sage-support] Re: Numerical evaluate of the Dirichlet character value

2008-09-24 Thread Robert Bradshaw
On Sep 24, 2008, at 4:42 AM, John Cremona wrote: > > 2008/9/24 mabshoff <[EMAIL PROTECTED]>: >> >> >> >> On Sep 24, 4:15 am, Raouf <[EMAIL PROTECTED]> wrote: >>> Hi, >>> I want to have a numerical value of a Dirichlet character : >>> >>> I have this line code in my notebook: >>> >>> sage: >>> G

[sage-support] Re: Numerical evaluate of the Dirichlet character value

2008-09-24 Thread John Cremona
2008/9/24 mabshoff <[EMAIL PROTECTED]>: > > > > On Sep 24, 4:15 am, Raouf <[EMAIL PROTECTED]> wrote: >> Hi, >> I want to have a numerical value of a Dirichlet character : >> >> I have this line code in my notebook: >> >> sage: >> G = DirichletGroup(21) >> chi = G.1; >> chi(23) >> >> evaluate: >>

[sage-support] Re: Numerical evaluate of the Dirichlet character value

2008-09-24 Thread John Cremona
This works: sage: emb = B.parent().complex_embeddings()[0] sage: emb(B) -6.5 + 11.2583302492*I B is an element of a number field: sage: B.parent() Cyclotomic Field of order 6 and degree 2 and number fields have several embeddings into CC (in this case, 2): sage: len( B.parent().complex_embeddi

[sage-support] Re: Numerical evaluate of the Dirichlet character value

2008-09-24 Thread mabshoff
On Sep 24, 4:15 am, Raouf <[EMAIL PROTECTED]> wrote: > Hi, > I want to have a numerical value of a  Dirichlet character : > > I have this line code in my notebook: > > sage: > G = DirichletGroup(21) > chi = G.1; > chi(23) > > evaluate: > zeta6 - 1 > > And when i want to use this value: zeta6 - 1