Re: [sage-support] Fast Ramanujan's tau function

2010-01-17 Thread William Stein
On Sun, Jan 17, 2010 at 10:11 PM, Rolandb wrote: > Hi, > > Consider: > > def tau(m): >    q = PowerSeriesRing(QQ, 'q', default_prec=12).gen() >    pq=prod([(1-q^k)^24 for k in range(1,m)]) >    return pq.coefficients()[:m] > > tau(20) > [1, -24, 252, -1472, 4830, -6048, -16744, 84480, -113643, -11

Re: [sage-support] Re: How to list (and remove) loaded objects in a sage session

2010-01-17 Thread William Stein
2010/1/17 Felix Lawrence : > On Jan 17, 11:35 am, William Stein wrote: >> 2010/1/16 Shing Hing Man : >> >> > Hi, >> >   In a Sage session (within notebook or command console) ,  how to >> > list all the loaded objects and how to remove them from the session ? >> >> Use show_identifiers and reset:

[sage-support] Fast Ramanujan's tau function

2010-01-17 Thread Rolandb
Hi, Consider: def tau(m): q = PowerSeriesRing(QQ, 'q', default_prec=12).gen() pq=prod([(1-q^k)^24 for k in range(1,m)]) return pq.coefficients()[:m] tau(20) [1, -24, 252, -1472, 4830, -6048, -16744, 84480, -113643, -115920, 534612, -370944, -577738, 401856, 1217160, 987136, -6905934,

Re: [sage-support] Re: How to list (and remove) loaded objects in a sage session

2010-01-17 Thread Minh Nguyen
Hi Felix, On Mon, Jan 18, 2010 at 4:16 PM, Felix Lawrence wrote: > Would it be more sensible not to display these omnipresent > identifiers? It's hard to find my own variables in the mess! I can replicate this on Linux (the machine mod.math). With a notebook session of Sage 4.3.1.rc0, issue

[sage-support] Re: How to list (and remove) loaded objects in a sage session

2010-01-17 Thread Felix Lawrence
On Jan 17, 11:35 am, William Stein wrote: > 2010/1/16 Shing Hing Man : > > > Hi, > > In a Sage session (within notebook or command console) , how to > > list all the loaded objects and how to remove them from the session ? > > Use show_identifiers and reset: > > sage: X = 10 > sage: show_identi

[sage-support] bug in Sage calculation of variety?

2010-01-17 Thread Jeff Stroomer
Sage Folks, I am running into what I think is a bug in a Sage calculation of a zero-dimensional variety. Attached is a test case that illustrates the problem. The test case shows that the variety contains a couple extra points that are not really killed by the corresponding ideal. Thanks in adv

Re: [sage-support] Plotting functions without scaling the y-axis?

2010-01-17 Thread William Stein
2010/1/17 Johann "Myrkraverk" Oskarsson : > Hi all, > > Is it possible to plot a function without scaling the y-axis?  In > particular, when animating a damped oscillator, I don't want > subsequent frames to zoom in. > > Code example: > > damped_oscillator = 41/311*sqrt(311)*e^(-3/8*t)*sin(1/8*sqrt

[sage-support] Re: SAGE and .NET interoperability.

2010-01-17 Thread Dima Pasechnik
I need to correct myself again, as I made diff against an already "touched" file. :( Sorry for this mess. Here how it must be: 704a705 > static Obj ProtectFname; 723a725,726 > /* For some reason itanium GC seems unable to spot fname */ > ProtectFname = fname; 726a730,731 > ProtectFname = (Ob

[sage-support] Re: How to list (and remove) loaded objects in a sage session

2010-01-17 Thread Shing Hing Man
Thanks for all the reply! show_identifiers() and reset() are what I am looking for. But it is good to learn that Python does garbage collection in a way similar to Java. Shing On Jan 17, 12:35 am, William Stein wrote: > 2010/1/16 Shing Hing Man : > > > Hi, > >   In a Sage session (within noteboo

[sage-support] Plotting functions without scaling the y-axis?

2010-01-17 Thread Johann "Myrkraverk" Oskarsson
Hi all, Is it possible to plot a function without scaling the y-axis? In particular, when animating a damped oscillator, I don't want subsequent frames to zoom in. Code example: damped_oscillator = 41/311*sqrt(311)*e^(-3/8*t)*sin(1/8*sqrt(311)*t) + \ 3*e^(-3/8*t)*cos(1/8*sqrt(311)*t) anima

Re: [sage-support] Unexpected behaviour with symbolic complex numbers

2010-01-17 Thread Burcin Erocal
On Sun, 17 Jan 2010 11:52:30 +0100 Rafael Fourquet wrote: > I find the following counter-intuitive: > > sage: i^2 > -1 > sage: a = (1-i) * x ; a > -(I + 1)*x > sage: a.coeff(x,1) > -I + 1 > > Is this a bug? > It made me make an error in the subject of an exam I wrote. This is #7876 on trac: h

[sage-support] Unexpected behaviour with symbolic complex numbers

2010-01-17 Thread Rafael Fourquet
I find the following counter-intuitive: sage: i^2 -1 sage: a = (1-i) * x ; a -(I + 1)*x sage: a.coeff(x,1) -I + 1 Is this a bug? It made me make an error in the subject of an exam I wrote. Thanks, Rafaël -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from t

[sage-support] Unexpected behaviour with symbolic complex numbers

2010-01-17 Thread rafaelf
I find the following counter-intuitive: sage: i^2 -1 sage: a = (1-i) * x ; a -(I + 1)*x sage: a.coeff(x,1) -I + 1 Is this a bug? It made me make an error in the subject of an exam I wrote. Thanks, Rafaël -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from t

[sage-support] Re: downloading several worksheets in zip file

2010-01-17 Thread Jason Grout
William Stein wrote: On Thu, Jan 14, 2010 at 11:34 PM, ma...@mendelu.cz wrote: Dear sage-support I had a look at sources of sage notebook and I have seen, that there are functions which can be used to download more sws worksheets in one zip file. How does it work? I was not able to find a suit

[sage-support] Re: two suggestions from JMM presentation

2010-01-17 Thread Jason Grout
kcrisman wrote: The presentation was very good. I hope it was enough to get my friend to try using SAGE. 1. Please do something to allow users to change the location of tick marks on 2D plots. This is possible now thanks to matplotlib, but we are trying to finish a nice interface to it. Than

[sage-support] Re: find_root - precision

2010-01-17 Thread Jason Grout
ma...@mendelu.cz wrote: But I do not know, how much can I trust the result. If I do (for example) sin(1).n(digits=1) is it true that the first 1 digits are correct? Or Sage actually passes the computation to scipy or some library which has limited precision a thus, only say fir