[sage-support] Re: Dirichlet L-function

2009-04-26 Thread agi
Thanks :) On 26 Apr., 02:43, Craig Citro wrote: > Hi, > > > The example from the reference manual p.2630 > > > sage: lcalc.twist_values(0.5, -10, 10) > > [(-8, 1.10042141), (-7, 1.14658567), (-4, 0.667691457), (-3, > > 0.480867558), > > (5, 0.231750947), (8, 0.373691713)] > > > works fine. But I

[sage-support] Re: Dirichlet L-function

2009-04-25 Thread agi
ne is an AMD X2 4200 and 2GB RAM. On 25 Apr., 15:38, David Joyner wrote: > After you type > lcalc.twist_values? > and look at the examples given, can you tell which command does not work, > what operating machine you are using and version of sage you are running? > > On Sat, Apr 2

[sage-support] Dirichlet L-function

2009-04-25 Thread agi
Is there a way to compute Dirichlet L-functions http://en.wikipedia.org/wiki/Dirichlet_L-function ? I tried lcalc.twist_values() but it doesn't work. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this gr

[sage-support] Re: maximum recursion depth exceeded in cmp

2009-03-31 Thread agi
Thanks, sys.setrecursionlimit(limit) works. On 26 Mrz., 16:39, William Stein wrote: > On Thu, Mar 26, 2009 at 5:24 AM, agi wrote: > > > Hi, > > I have a recursive algorithm that works well if it doesn't need more > > than 5637 iterations. > > In the case of

[sage-support] maximum recursion depth exceeded in cmp

2009-03-26 Thread agi
Hi, I have a recursive algorithm that works well if it doesn't need more than 5637 iterations. In the case of more than 5637 iterations the error message is: RuntimeError: maximum recursion depth exceeded in cmp Is there a way to make SAGE execute it for more than 5637 iterations? --~--~

[sage-support] Re: QR decomposition of a RQDF-matrix

2009-03-03 Thread agi
On 3 Mrz., 20:14, William Stein wrote: > On Tue, Mar 3, 2009 at 1:11 PM, agi wrote: > > > Hello, > > I need a QR-decomposition of a RQDF-matrix.It is only > > possible in RDF. Does there exist something similar > > for RQDF or do I have to write a function by myse

[sage-support] QR decomposition of a RQDF-matrix

2009-03-03 Thread agi
Hello, I need a QR-decomposition of a RQDF-matrix.It is only possible in RDF. Does there exist something similar for RQDF or do I have to write a function by myself. Thanks! --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Re: getting digits

2008-12-29 Thread agi
On 28 Dez., 23:14, "William Stein" wrote: > Is this the sort of thing you want? > > sage: n = 123.45 > sage: n > 123.4500 > sage: len(str(n).rstrip('0')) - 1 > 5 > Thank you. That's exactly what I need. --~--~-~--~~~---~--~~ To post to this group, send em

[sage-support] getting digits

2008-12-28 Thread agi
Hi, I have a number like 12.345 and I would like to count the digits. There's a function 123.digits(10) which returns a vector whose length counts the digits. But this only works for integers and I need it for real numbers. --~--~-~--~~~---~--~~ To post to this grou

[sage-support] Re: if-statement with "infinity" or "NaN"

2008-09-04 Thread agi
It works with "not z.is_infinity()". Thanks :) --~--~-~--~~~---~--~~ 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/

[sage-support] Re: if-statement with "infinity" or "NaN"

2008-09-04 Thread agi
I have this: H is a real-valued Matrix z=abs(H[i,j]/H[j,j]) if z!=infinity: print H[i,j], H[i,j].parent() print H[j,j], H[j,j].parent() print z But it doesn't work: H[ 2 , 1 ]= -0.0243252127705267 Real Field with 53 bits of precision H[ 1 , 1 ]= 0.000 Real Field with 5

[sage-support] if-statement with "infinity" or "NaN"

2008-09-04 Thread agi
Hi, I want to check if a number is set to infinity or NaN. So I tried this if-statement: if x!=infinity: print x But this doesn't work when x=a/b with a very small b, so that x becomes infinity. (I'm using SAGE Version 3.0.1) Agi --~--~-~--~~~---~-