On Wed, Sep 10, 2008 at 4:25 PM, Raouf <[EMAIL PROTECTED]> wrote: > > Hello again, > > I want to compute the trace of Hecke operator with large integer but > always i have the same error message > > " Traceback (click to the left for traceback) > ... > TypeError: n must be an int" > > For example if i reduce the parameter in the hecke operator (13^8) , i > have > > sage: > M1 = ModularSymbols(21,2) > T1 = M1.hecke_operator(13^8) > trace1=T1.trace() > print trace1 > > evaluate result: > 2651076189 > > but if i increase the parameter (13^9) : > > sage: > M1 = ModularSymbols(21,2) > T1 = M1.hecke_operator(13^9) > trace1=T1.trace() > print trace1
Works for me: sage: M1 = ModularSymbols(21,2) sage: T1 = M1.hecke_operator(13^8) sage: trace1=T1.trace() sage: print trace1 2651076189 sage: T1 = M1.hecke_operator(13^9) sage: trace1=T1.trace() sage: print trace1 34464553246 sage: What version of Sage and what operating system are you using? > > evaluate result: > > Traceback (most recent call last): print trace1 > File "/usr/local/sage/local/lib/python2.5/site-packages/sage/modular/ > hecke/module.py", line 860, in hecke_operator > return self.hecke_algebra().hecke_operator(n) > File "/usr/local/sage/local/lib/python2.5/site-packages/sage/modular/ > hecke/algebra.py", line 186, in hecke_operator > T = hecke_operator.HeckeOperator(self, n) > File "/usr/local/sage/local/lib/python2.5/site-packages/sage/modular/ > hecke/hecke_operator.py", line 362, in __init__ > raise TypeError, "n must be an int" > TypeError: n must be an int > > there is any way to go over this? > Thank u > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---