[sage-support] Re: Notebook server sluggish in 3.4

2009-05-30 Thread Robert Bradshaw
I have seen this from time to time as well, though was never able to reliably reproduce it (and it hasn't happened to me for a while, so I thought it was fixed). Sometimes when running a calculation *or* adding/removing cells the notebook process (not the sage process actually doing the co

[sage-support] Re: Difference equations?

2009-05-30 Thread David Joyner
On Sat, May 30, 2009 at 10:50 PM, Alasdair wrote: > > You use solve_rec like this: > > maxima.load('solve_rec') > maxima('solve_rec(f[n+2]-3*f[n+1]+2*f[n]=2^n,f[n],f[0]=1,f[1]=0)') > Also, see http://maxima.sourceforge.net/docs/tutorial/en/gaertner-tutorial-revision/Pages/DiffEq0001.htm This mig

[sage-support] Re: Difference equations?

2009-05-30 Thread Alasdair
You use solve_rec like this: maxima.load('solve_rec') maxima('solve_rec(f[n+2]-3*f[n+1]+2*f[n]=2^n,f[n],f[0]=1,f[1]=0)') I think that solve_rec can in fact solve a larger class of difference equations than linear equations with constant coefficients, but my use doesn't involve anything more tha

[sage-support] Re: 3dplotting complex functions

2009-05-30 Thread kcrisman
Ironically, I did something just like this at a talk this week. But I used something like lambda x,y: abs(zeta(x+i*y)) (actually not that, but I hope that will work). At least one of these should really be implemented as complexplot3d or something like that. Does that seem like a useful func

[sage-support] Re: Difference equations?

2009-05-30 Thread Jason Grout
Alasdair wrote: > I can solve a difference equation using the Maxima interface, and the > "solve_rec" package included with Maxima. Apparently SymPy can also > solve difference equations, but I can't find any documentation or > examples to show how this is done. So, two questions: > > 1) How c

[sage-support] Re: 3dplotting complex functions

2009-05-30 Thread littlemathteacher
Thanks a lot. Much simpler than I thought it would be. Very fine instructive example. Yours, littlemathteacher. On 30 Mai, 17:49, Jason Grout wrote: > littlemathteacher wrote: > > Dear Supporters, > > > first of all thanks to you all for doing such a great support job to > > me so far. > > > Now

[sage-support] Re: Difference equations?

2009-05-30 Thread William Stein
On Sat, May 30, 2009 at 5:13 PM, Alasdair wrote: > > I can solve a difference equation using the Maxima interface, and the > "solve_rec" package included with Maxima.  Apparently SymPy can also > solve difference equations, but I can't find any documentation or > examples to show how this is done

[sage-support] Packages and Full installation

2009-05-30 Thread Josh
I'm just wondering about ordering the DVD. Does that come with all the additional packages (minus experimental)? This is a fairly trivial question, but I just want to install everything just to be able to show it off to my heavily pro-mathematica math department. --~--~-~--~~

[sage-support] Difference equations?

2009-05-30 Thread Alasdair
I can solve a difference equation using the Maxima interface, and the "solve_rec" package included with Maxima. Apparently SymPy can also solve difference equations, but I can't find any documentation or examples to show how this is done. So, two questions: 1) How can difference equations be s

[sage-support] Re: Citing Sage- 2nd try

2009-05-30 Thread William Stein
On Sat, May 30, 2009 at 12:44 PM, avra wrote: > > Hi William, > > Thank you for the info. > > Would this be the appropriate way to incorporate everyone? That seems reasonable to me. William > >  \newcommand{\etalchar}[1]{$^{#1}$} >  \bibitem[S{\etalchar{+}}09]{sage} >  W.\thinspace{}A. Stein e

[sage-support] Re: using sphinx to create a manual

2009-05-30 Thread Mike Hansen
Hello, On Sat, May 30, 2009 at 3:27 PM, wrote: > I am sorry for my newbie question, but doesn't it seem natural that a > separate installation of Sphinx shouldn't be needed.? Is Sphinx not > included with Sage? He means a new Sphinx document. Something you'd get by running the sphinx-quicksta

[sage-support] Re: Notebook server sluggish in 3.4

2009-05-30 Thread Rob Beezer
#5371 will set better defaults, but only for a new server installation. For an existing notebook, to adjust the current save times on nb.sobj mimic the following session at the sage command line: sage: nb = load('/home/somebody/.sage/sage_notebook/nb.sobj', compress=False) sage: print nb.conf()

[sage-support] Re: using sphinx to create a manual

2009-05-30 Thread simon . king
Dear David, On 30 Mai, 23:51, davidp wrote: > I am writing a manual for a Sage package I am developing.  It seems > natural to use Sphinx/reST.   I am sorry for my newbie question, but doesn't it seem natural that a separate installation of Sphinx shouldn't be needed.? Is Sphinx not included wi

[sage-support] Re: multivariate polynomial rings and symmetric functions

2009-05-30 Thread simon . king
Hi! On 30 Mai, 14:16, simon.k...@uni-jena.de wrote: ... >   sage: R._has_coerce_map_from(R) > > --- >   TypeError                                 Traceback (most recent > call last) > >   /home/SimonKing/.sage/temp/sage.math.

[sage-support] Re: Notebook server sluggish in 3.4

2009-05-30 Thread Kiran Kedlaya
Rob points out that some other tickets are pertinent too, notably #5371. Following the instructions there made my notebook usable again (while Gonzalo's script is still running). He also mentioned #5895, which I'm going to go look at now. Thanks! Kiran On May 30, 5:24 pm, Kiran Kedlaya wrote:

[sage-support] Re: using sphinx to create a manual

2009-05-30 Thread davidp
I guess I figured it out. In the conf.py file: # The reST default role (used for this markup: `text`) to use for all documents. default_role = 'math' --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this

[sage-support] using sphinx to create a manual

2009-05-30 Thread davidp
I am writing a manual for a Sage package I am developing. It seems natural to use Sphinx/reST. I made an independent installation of Sphinx and eventually realized that to typeset mathematics, I need to write, for example, :math:`\Gamma` instead of Sage's cleaner version: ` \Gamma`. The latter

[sage-support] Re: Notebook server sluggish in 3.4

2009-05-30 Thread Kiran Kedlaya
Followup: I think the underlying issue here was addressed in ticket #5880. My problem was that I had a lot of old snapshots created by pre-3.4.1 versions of sage, and they were tying the file system in knots. I'm now running the script Gonzalo posted to #5880 that deletes redundant snapshots; that

[sage-support] Re: Notebook server sluggish in 3.4

2009-05-30 Thread Rob Beezer
I experienced similar symptoms a while back. The notebook frequently backs up individual worksheets in a "snapshots" directory and you may have millions of them, but I don't think this was the root of the problem. There is also a .sage/sage_notebook/nb.sobj file that gets backed-up regularly (e

[sage-support] Re: Citing Sage- 2nd try

2009-05-30 Thread avra
Hi William, Thank you for the info. Would this be the appropriate way to incorporate everyone? \newcommand{\etalchar}[1]{$^{#1}$} \bibitem[S{\etalchar{+}}09]{sage} W.\thinspace{}A. Stein et~al., \emph{{S}age {M}athematics {S}oftware ({V}ersion 3.3)}, The Sage~Development Team (specific pac

[sage-support] Re: multivariate polynomial rings and symmetric functions

2009-05-30 Thread amps
sure, i think it is a bit weird as well. It certainly has behaviour that is unexpected. I think this will cause a lot of confusion, so I think openning a ticket is a good idea. As for multiplying those two polynomials, it seems that what you have said works. I will give it a try. Cheers On 3

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-05-30 Thread Jorge E . ´Sanchez Sanchez
Adam, according to the FAQ No. 3.9: "It may be that you have Tcl/Tk installed and that your system's python recognizes it, but Sage's python does not, To fix that, install the tcl/tk development library (something like tk8.5-dev)." Then, you can test if this is the case giving: sa

[sage-support] Re: Notebook server sluggish in 3.4

2009-05-30 Thread Kiran Kedlaya
> > I just tried a test with 3.4.1, and I was seeing 100% CPU usage (and > > impressive memory usage) even when the notebook was idle. This is a > > Fedora 64 system, so I also tried using a patched 4.0.rc1 that > > upgraded python to 2.5.4 (since that fixed other memory issues); that > > way, I d

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-30 Thread simon . king
Dear Laurent, I think the idea is that Sage is "with batteries included" and should not interfere with anything that you have on your system. Namely, since Sage is rather big, it is very probable that Sage ships something that is already installed on your computer -- in your case, Python. So, eit

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-30 Thread Laurent
>> I've tried to import both sage and pygtk without success, both in >> python and sage console. Please tell me if you can achieve this. I >> guess you have to install the module within sage, even if it is >> installed in the system, but outside sage. >> The same here : #! /usr/bin/sage -p

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-05-30 Thread Adam
Here's what I tried: download tcl8.5.7-src.tar.gz and tk8.5.7-src.tar.gz from http://www.tcl.tk/software/tcltk/download.html run ./configure --enable-framework --disable-xft in the unix/ subdirectory of tcl, then make & make install as normal run ./configure --enable-framework --disable-xft in th

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-30 Thread Kevin Horton
On Sat, May 30, 2009 at 11:10, pang wrote: > > > In the case where I'm using the test.sage trick, can I still import my > > own modules > > or have access to everything ? > > I guess the answer is Yes, isn't ? > > > I've tried to import both sage and pygtk without success, both in > python and sa

[sage-support] Re: 3dplotting complex functions

2009-05-30 Thread Jason Grout
littlemathteacher wrote: > Dear Supporters, > > first of all thanks to you all for doing such a great support job to > me so far. > > Now I want to make complex analysis visible and to plot 3d-graphics > either of real or imaginary parts of functions. > > The first step would be to plot the exp

[sage-support] Re: 3dplotting complex functions

2009-05-30 Thread Jason Grout
littlemathteacher wrote: > Dear Supporters, > > first of all thanks to you all for doing such a great support job to > me so far. > > Now I want to make complex analysis visible and to plot 3d-graphics > either of real or imaginary parts of functions. > > The first step would be to plot the exp

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-30 Thread Tim Lahey
On May 30, 2009, at 11:10 AM, pang wrote: > I've tried to import both sage and pygtk without success, both in > python and sage console. Please tell me if you can achieve this. I > guess you have to install the module within sage, even if it is > installed in the system, but outside sage. > Sag

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-30 Thread pang
> In the case where I'm using the test.sage trick, can I still import my > own modules > or have access to everything ? > I guess the answer is Yes, isn't ? > I've tried to import both sage and pygtk without success, both in python and sage console. Please tell me if you can achieve this. I guess

[sage-support] Re: build failure on andLinux / Ubuntu

2009-05-30 Thread gary_p
On May 30, 12:30 am, William Stein wrote: > On Fri, May 29, 2009 at 7:03 PM, gary wrote: > > > I'm running Ubuntu 9.04 in andLinux > > (http://www.andlinux.org) > > a linux kernel that runs on MS Windows.  Up to now, it's behaved just > > like any other Ubuntu. > > > I've compiled sage on othe

[sage-support] Re: Notebook server sluggish in 3.4

2009-05-30 Thread William Stein
On Sat, May 30, 2009 at 7:21 AM, Kiran Kedlaya wrote: > > > > On May 29, 1:50 pm, William Stein wrote: >> 2009/5/29 Kiran Kedlaya : >> >> >> >> >> >> > On Apr 14, 3:47 pm, William Stein wrote: >> >> On Tue, Apr 14, 2009 at 12:30 PM, Kiran Kedlaya wrote: >> >> >> > I see 100% CPU usage when the

[sage-support] Re: Notebook server sluggish in 3.4

2009-05-30 Thread Kiran Kedlaya
On May 29, 1:50 pm, William Stein wrote: > 2009/5/29 Kiran Kedlaya : > > > > > > > On Apr 14, 3:47 pm, William Stein wrote: > >> On Tue, Apr 14, 2009 at 12:30 PM, Kiran Kedlaya wrote: > > >> > I see 100% CPU usage when the notebook is processing a cell. I don't > >> > remember whether I still

[sage-support] 3dplotting complex functions

2009-05-30 Thread littlemathteacher
Dear Supporters, first of all thanks to you all for doing such a great support job to me so far. Now I want to make complex analysis visible and to plot 3d-graphics either of real or imaginary parts of functions. The first step would be to plot the exponential function just like in the german o

[sage-support] Re: multivariate polynomial rings and symmetric functions

2009-05-30 Thread simon . king
Hi! A little addendum: > For a similar reason, neither f nor g are elements of R. I would agree that it is a little confusing that something is equal to an element of a polynomial ring but is not an element of that ring, or in pure form: sage: R = QQ['x','y'] sage: R1.=QQ[] sage: R2.=QQ[]

[sage-support] Re: multivariate polynomial rings and symmetric functions

2009-05-30 Thread simon . king
Hi! On 30 Mai, 12:47, amps wrote: ... > TypeError: unsupported operand parent(s) for '*': 'Multivariate > Polynomial Ring in z0 over Rational Field' and 'Multivariate > Polynomial Ring in z1 over Rational Field' > sage: > > > Basically, I want to be able

[sage-support] Re: multivariate polynomial rings and symmetric functions

2009-05-30 Thread amps
Sorry to reply to myself, here is what I really want to do. continuing my last post I will put the entire code again). sage: R=PolynomialRing(QQ,2,'z') sage: z=R.gens() sage: x=tuple([z[0]]) sage: p=SFAPower(QQ) sage: f=p([2,1]).expand(1,alphabet=x) sage: f z0^3 sage: f in R False sage: f==z[0]^

[sage-support] multivariate polynomial rings and symmetric functions

2009-05-30 Thread amps
Hello, I am wondering how to coerce a symmetric function in a certain number of variables into a polynomial ring with larger variables. I am getting some rather confusing output. -- | Sage Version 3.4.2, Release Date: 2009-05-0