Hi Gaetan, Sorry it took me so long to get to this, but I've been out of town for the last three weeks at conferences. It's fixed, and the patch should be in the next version of Sage (which is only a few days away). Credit also goes to Willem Jan Palenstijn and Rob Bradshaw.
Definitely let me know if you run into any more troubles! The only reason we hadn't hit this one before is that I'd never tried making a Dirichlet character for such a large prime. :) But I'm very happy to help with any bugs you hit. Also let me know if you run into anything that's unbearably slow, and I'll be happy to look into it. -cc On Mon, Jun 30, 2008 at 5:59 PM, William Stein <[EMAIL PROTECTED]> wrote: > On Mon, Jun 30, 2008 at 8:36 AM, Gaëtan Bisson <[EMAIL PROTECTED]> wrote: >> >> Dear SAGE community, >> >> I am trying to compute characters for some finite fields. >> >> With "small" fields, everything is fine: >> sage: K=CyclotomicField(10); >> sage: p=10151; >> sage: Character=DirichletGroup(p,K); >> sage: Khi=Character.0; >> sage: Khi(7) >> zeta10 >> >> However, with slightly larger fields: >> sage: K=CyclotomicField(10); >> sage: p=100151; >> sage: Character=DirichletGroup(p,K); >> sage: Khi=Character.0; >> sage: Khi(7) >> --------------------------------------------------------------------------- >> AttributeError Traceback (most recent call >> last) >> >> /users/cacao/bissogae/<ipython console> in <module>() >> >> >> /localdisk/tmp/sage-3.0.3/local/lib/python2.5/site-packages/sage/modular/dirichlet.py >> in __call__(self, m) >> >> >> /localdisk/tmp/sage-3.0.3/local/lib/python2.5/site-packages/sage/modular/dirichlet.py >> in values(self) >> >> AttributeError: 'sage.rings.integer_mod.IntegerMod_int64' object has no >> attribute 'ivalue' >> >> Is there something I am missing? >> > > Craig Citro introduced this bug recently. We're tracking it here: > > http://trac.sagemath.org/sage_trac/ticket/3539 > > Craig will fix this ASAP. > > William > --~--~---------~--~----~------------~-------~--~----~ 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-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
