[sage-support] Re: Superimpose various region_plot's

2010-07-14 Thread David Sanders
On Jul 13, 8:35 pm, David Sanders wrote: > On Jul 13, 4:47 pm, Jason Grout wrote: > > > > > On 7/13/10 4:46 AM, David Sanders wrote: > > > > Hi, > > > > I need to superimpose several region_plot's. These have regions > > > colored in di

[sage-support] Re: Superimpose various region_plot's

2010-07-13 Thread David Sanders
On Jul 13, 4:47 pm, Jason Grout wrote: > On 7/13/10 4:46 AM, David Sanders wrote: > > > > > Hi, > > > I need to superimpose several region_plot's. These have regions > > colored in different colors which may or may not overlap. However, if > > I

[sage-support] Superimpose various region_plot's

2010-07-13 Thread David Sanders
Hi, I need to superimpose several region_plot's. These have regions colored in different colors which may or may not overlap. However, if I do something like var('p q') plot1 = region_plot([p+q<1, p+q>-1], (p,-2,2), (q,-2,2), incol='red') plot2 = region_plot([p-q<1, p-q>-1], (p,-2,2), (q,-2,2), i

[sage-support] Re: How to plot regions defined by inequalities in 3D?

2010-07-12 Thread David Sanders
On Jul 12, 7:29 pm, Carl Witty wrote: > On Jul 12, 2:28 am, David Sanders wrote: > > > Hi, > > > I have been playing around with the implicit_plot3d command, and it's > > very nice. > > > Is there something similar to plot regions defined by inequ

[sage-support] Re: Pattern matching of a symbolic function acting on a symbolic variable

2010-07-12 Thread David Sanders
On Jul 12, 12:19 pm, Burcin Erocal wrote: > Hi David, > > On Mon, 12 Jul 2010 02:24:41 -0700 (PDT) > > > > David Sanders wrote: > > On Jul 11, 8:13 pm, "ma...@mendelu.cz" wrote: > > > On 11 čnc, 12:22, William Stein wrote: > > &

[sage-support] How to plot regions defined by inequalities in 3D?

2010-07-12 Thread David Sanders
Hi, I have been playing around with the implicit_plot3d command, and it's very nice. Is there something similar to plot regions defined by inequalities in 3D, along the lines of the Mathematica RegionPlot3D command? I see that there is an old discussion from 2 years ago about this. It seems to

[sage-support] Re: Pattern matching of a symbolic function acting on a symbolic variable

2010-07-12 Thread David Sanders
On Jul 11, 8:13 pm, "ma...@mendelu.cz" wrote: > On 11 čnc, 12:22, William Stein wrote: > > > On Sat, Jul 10, 2010 at 10:04 PM, David Sanders wrote: > > > Maybe > > >    http://sagemath.org/doc/reference/calculus.html > > Perhaps > also

[sage-support] Re: Pattern matching of a symbolic function acting on a symbolic variable

2010-07-12 Thread David Sanders
On Jul 11, 12:22 pm, William Stein wrote: > On Sat, Jul 10, 2010 at 10:04 PM, David Sanders wrote: > > > On Jul 10, 10:01 pm, David Sanders wrote: > >> Hi, > > >> Following up from a couple of my previous posts, I am now wondering > >> how to do symb

[sage-support] Re: Pattern matching of a symbolic function acting on a symbolic variable

2010-07-10 Thread David Sanders
On Jul 10, 10:01 pm, David Sanders wrote: > Hi, > > Following up from a couple of my previous posts, I am now wondering > how to do symbolic pattern matching for an expression of the following > form: Apologies for replying to my own post, but I was wondering if there's

[sage-support] Pattern matching of a symbolic function acting on a symbolic variable

2010-07-10 Thread David Sanders
Hi, Following up from a couple of my previous posts, I am now wondering how to do symbolic pattern matching for an expression of the following form: f, g = function('f g') i = var('i') expr = f(i+1) g(i) I need to extract the "indices" i+1 and i from this expression. If I simplify to expr = f

[sage-support] Re: Expressions with arbitrary indices

2010-07-09 Thread David Sanders
On Jul 9, 3:54 am, Jason Grout wrote: > On 7/8/10 12:26 PM, David Sanders wrote: > > > > > Hi, > > > How can I manipulate objects with indices? > > I need to do things like > > > a_i + b_i * c_{j+1} > > > using a TeX style notation (so that in

[sage-support] Re: Extracting parts of a symbolic expression

2010-07-09 Thread David Sanders
On Jul 9, 6:14 am, Jason Grout wrote: > On 7/8/10 11:38 AM, David Sanders wrote: > > > > > Hi, > > > I am trying to extract part of a symbolic expression. > > The expression -- an eigenvalue of a matrix -- has the form > > > A + B*sqrt(C) > &g

[sage-support] Re: Extracting parts of a symbolic expression

2010-07-09 Thread David Sanders
On Jul 9, 5:16 am, kcrisman wrote: > On Jul 8, 2:38 pm, David Sanders wrote: > > > > > Hi, > > > I am trying to extract part of a symbolic expression. > > The expression -- an eigenvalue of a matrix -- has the form > > > A + B*sqrt(C) > > > w

[sage-support] Re: Notebook appearance: change font and syntax highlighting?

2010-07-09 Thread David Sanders
On Jul 9, 6:21 am, Jason Grout wrote: > On 7/7/10 2:34 PM, David Sanders wrote: > > > > > Hi, > > > [Using 'Sage Version 4.4.4, Release Date: 2010-06-23' on Kubuntu > > 10.04] > > > I have just started using Sage, mainly using the noteboo

[sage-support] Expressions with arbitrary indices

2010-07-08 Thread David Sanders
Hi, How can I manipulate objects with indices? I need to do things like a_i + b_i * c_{j+1} using a TeX style notation (so that in the last term, the index is j +1) where i and j are symbolic. In Mathematica this would be something like a[i] + b[i] * c[j+1] but something like that presumably

[sage-support] Extracting parts of a symbolic expression

2010-07-08 Thread David Sanders
Hi, I am trying to extract part of a symbolic expression. The expression -- an eigenvalue of a matrix -- has the form A + B*sqrt(C) where A, B and C are themselves complicated symbolic expressions. I wish to extract the subexpression C from this to test where the eigenvalues change type (where

[sage-support] Re: How to export notebook worksheet to text file

2010-07-08 Thread David Sanders
On Jul 8, 5:45 am, TianWei wrote: > > I built a worksheet with several cells in the notebook, and then > > wanted to try to run it on a remote computer using the command line > > interface.  But I could not find a convincing way to export the > > worksheet to a simple text file that I could impo

[sage-support] Re: Strange (non-)substitution of variables whose name is not equal to their representation

2010-07-08 Thread David Sanders
On Jul 8, 1:14 am, Mike Hansen wrote: > On Wed, Jul 7, 2010 at 1:49 PM, David Sanders wrote: > > I now want to substitute eps=1, so I do > > > a.subs(eps = 1) > > > but the response is still 3*epsilon ! > > This is due to the way Python functions work.  

[sage-support] Re: Shortcut key for deleting a word in notebook interface

2010-07-08 Thread David Sanders
On Jul 7, 11:52 pm, David Sanders wrote: > On Jul 7, 11:43 pm, "ma...@mendelu.cz" wrote: > > > > > On 7 čnc, 22:55, David Sanders wrote: > > > > Hi, > > > > [I am using 'Sage Version 4.4.4, Release Date: 2010-06-23', downloaded

[sage-support] Re: Shortcut key for deleting a word in notebook interface

2010-07-07 Thread David Sanders
On Jul 7, 11:43 pm, "ma...@mendelu.cz" wrote: > On 7 čnc, 22:55, David Sanders wrote: > > > > > Hi, > > > [I am using 'Sage Version 4.4.4, Release Date: 2010-06-23', downloaded > > a couple of days ago as the Ubuntu 10.04 binary package, use

[sage-support] Re: How to export notebook worksheet to text file

2010-07-07 Thread David Sanders
> > [Using 'Sage Version 4.4.4, Release Date: 2010-06-23' on Kubuntu > > 10.04.] > > > The following seems like it must come up a lot, but I have not been > > able to find an answer (apologies if I missed it somewhere). > > > I built a worksheet with several cells in the notebook, and then > > wa

[sage-support] Notebook appearance: change font and syntax highlighting?

2010-07-07 Thread David Sanders
Hi, [Using 'Sage Version 4.4.4, Release Date: 2010-06-23' on Kubuntu 10.04] I have just started using Sage, mainly using the notebook interface, which on the whole is excellent and impressive! I started out by trying the new interface "Cantor", which is very nice, but I found it to be too unstab

[sage-support] How to export notebook worksheet to text file

2010-07-07 Thread David Sanders
Hi, [Using 'Sage Version 4.4.4, Release Date: 2010-06-23' on Kubuntu 10.04.] The following seems like it must come up a lot, but I have not been able to find an answer (apologies if I missed it somewhere). I built a worksheet with several cells in the notebook, and then wanted to try to run it o

[sage-support] Shortcut key for deleting a word in notebook interface

2010-07-07 Thread David Sanders
Hi, [I am using 'Sage Version 4.4.4, Release Date: 2010-06-23', downloaded a couple of days ago as the Ubuntu 10.04 binary package, used in Kubuntu 10.04.] I am just starting out with Sage, and I am very impressed over all. But after using it pretty intensively for 2 days, I find that I have a co

[sage-support] Strange (non-)substitution of variables whose name is not equal to their representation

2010-07-07 Thread David Sanders
Hi, I have finally managed to try out Sage seriously after a long time wanting to (and with intermediate-level Python experience). In general it's really rather amazing, thanks to all involved! I have come across what -- to me -- seems at least incongruous, when substituting variables. I am using