[sage-support] Getting a mirror image of a matrix

2010-07-07 Thread Kwankyu
Hi, Does Sage have a command to get the mirror image matrix [3,2,1] [6,5,4] from the matrix [1,2,3] [4,5,6] ? It seems not... Then is there a simple trick to do that? Of course, I can do it in a long way...but... Thank you in advance. Kwankyu -- To post to this group, send email to sage-s

[sage-support] Re: why does constructing this ring take forever?

2010-07-07 Thread Kwankyu
It's worse. Ctrl-C does not work if you try when you got sick of waiting. Kwankyu -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.go

[sage-support] Re: why does constructing this ring take forever?

2010-07-07 Thread luisfe
On Jul 7, 2:21 am, dmharvey wrote: > sage: R. = PolynomialRing(Integers(16219299585*2^16612 - 1)) > > Maybe not literally forever, but I got sick of waiting. Should be > instantaneous. > > david When constructing a polynomial ring over Z/nZ sage distingishes between prime modulus or not. Moreov

[sage-support] Re: Getting a mirror image of a matrix

2010-07-07 Thread Nathann Cohen
Hm... If you are just looking for a "trick", perhaps the following line will suit your taste :-) sage: m = Matrix([[1,2,3],[4,5,6]]) sage: m [1 2 3] [4 5 6] sage: m2 = Matrix(map(list,map(reversed,m.rows( sage: m2 [3 2 1] [6 5 4] I hope there is another solution though, as this requires t

[sage-support] Re: Getting a mirror image of a matrix

2010-07-07 Thread Johan Grönqvist
2010-07-07 09:10, Kwankyu skrev: Does Sage have a command to get the mirror image matrix [3,2,1] [6,5,4] from the matrix [1,2,3] [4,5,6] Like this? sage: m = Matrix([[1,2,3],[4,5,6]]) sage: m [1 2 3] [4 5 6] sage: m2 = m[::, ::-1] sage: m2 [3 2 1] [6 5 4] / johan -- To post to this gr

[sage-support] Re: why does constructing this ring take forever?

2010-07-07 Thread Simon King
Hi! On 7 Jul., 09:48, luisfe wrote: > ... > So, the > time in constructing the PolynomialRing is in fact checking if > 16219299585*2^16612 - 1 is a proven prime. ... which means that the user should be given the opportunity to *assert* that the number is prime (or non-prime). Cheers, Simon --

Re: [sage-support] Some R integration samples - is there better way to do it?

2010-07-07 Thread Andrzej Giniewicz
ah, thanks - I know about r.tab, well - most of it are R commands, the issue is that I didn't found those sage specific ones - it would help if at least list of modified commands would appear in "r?" docstrings. Anyway, is r.set working? I used: sage: r.ls() character(0) sage: r.set('y', r([1,2,3]

Re: [sage-support] Re: why does constructing this ring take forever?

2010-07-07 Thread Alex Ghitza
On Wed, 7 Jul 2010 01:56:29 -0700 (PDT), Simon King wrote: > On 7 Jul., 09:48, luisfe wrote: > > ... > > So, the > > time in constructing the PolynomialRing is in fact checking if > > 16219299585*2^16612 - 1 is a proven prime. > > ... which means that the user should be given the opportunity to

[sage-support] Re: Getting a mirror image of a matrix

2010-07-07 Thread Kwankyu
Hi Nathann and Johan, Thank you for the tips. Kwankyu -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support

[sage-support] NEURON + hands-on tutorial using Sage in San Diego 2010.

2010-07-07 Thread Jose Guzman
Dear Sage list-members, For those interested in computational neuroscience and the Neuron simulation environment; next 13 Nov an initiation course about Neuron using SAGE will be hold in San Diego. The course will be use SAGE as interface to access the different scientific Python packages and

[sage-support] Re: why does constructing this ring take forever?

2010-07-07 Thread dmharvey
On Jul 7, 4:56 am, Simon King wrote: > Hi! > > On 7 Jul., 09:48, luisfe wrote: > > > ... > > So, the > > time in constructing the PolynomialRing is in fact checking if > > 16219299585*2^16612 - 1 is a proven prime. > > ... which means that the user should be given the opportunity to > *assert* th

[sage-support] Re: Some R integration samples - is there better way to do it?

2010-07-07 Thread kcrisman
On Jul 7, 5:02 am, Andrzej Giniewicz wrote: > ah, thanks - I know about r.tab, well - most of it are R commands, the > issue is that I didn't found those sage specific ones - it would help > if at least list of modified commands would appear in "r?" docstrings. > Anyway, is r.set working? I used

Re: [sage-support] Re: Some R integration samples - is there better way to do it?

2010-07-07 Thread Andrzej Giniewicz
Hi, > Note the following in > > sage: r.set? > > Definition:     r.set(self, var, value) > Docstring: >       Set the variable var in R to what the string value evaluates to > in >       R. > >       INPUT: >          var -- a string value -- a string > >       EXAMPLES: >          sage: r.set('a'

[sage-support] Re: Getting a mirror image of a matrix

2010-07-07 Thread Jason Grout
On 7/7/10 1:26 AM, Johan Grönqvist wrote: 2010-07-07 09:10, Kwankyu skrev: Does Sage have a command to get the mirror image matrix [3,2,1] [6,5,4] from the matrix [1,2,3] [4,5,6] Like this? sage: m = Matrix([[1,2,3],[4,5,6]]) sage: m [1 2 3] [4 5 6] sage: m2 = m[::, ::-1] sage: m2 [3 2 1]

Re: [sage-support] Re: why does constructing this ring take forever?

2010-07-07 Thread Justin C. Walker
On Jul 7, 2010, at 00:15 , Kwankyu wrote: It's worse. Ctrl-C does not work if you try when you got sick of waiting. Actually, Ctrl-C does work, but it takes "forever" to register - perhaps until it's finished some part of the "proof" of primality mentioned earlier in the thread. I let i

Re: [sage-support] Re: why does constructing this ring take forever?

2010-07-07 Thread William Stein
David, I've posted the code to http://trac.sagemath.org/sage_trac/ticket/9206 which is now ready for review. Alas, it does not address your bug, though it is similar in spirit. William On Wed, Jul 7, 2010 at 9:28 PM, William Stein wrote: > On Wed, Jul 7, 2010 at 4:39 PM, David Harvey wrot

[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

[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] 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

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

2010-07-07 Thread Justin C. Walker
On Jul 7, 2010, at 14:20 , David Sanders wrote: 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

[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] 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] Re: Shortcut key for deleting a word in notebook interface

2010-07-07 Thread ma...@mendelu.cz
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, used in > Kubuntu 10.04.] > > I am just starting out with Sage, and I am very impressed over all. > But after using it p

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

2010-07-07 Thread David Kirkby
On 7 July 2010 22:40, David Sanders wrote: > That doesn't work for me, since I want to import from the command line > interface. > So, as far as I can tell, I can't import the binary .sws worksheet > file -- I need a plain Python script, or a "something.sage" file. > > So my more precise question

[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, used in > > Kubuntu 10.04.] > > > I am just starting out

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

2010-07-07 Thread Mike Hansen
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. Basically, doing a.subs(eps=1) is the same as doing a.subs(**{'eps': 1}) When you use key

[sage-support] GAP undeposited implementation through Sage

2010-07-07 Thread Adam Sorkin
Hi [ Note this is the question Gap Undeposited Implementations; I couldn't seem to reply to that discussion any more] I'm using Sage 4.3.3 through the terminal. I'm trying to use the Braid package written by K. Magaard for GAP. I would like to do everything through Sage, but I'm getting the follow

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

2010-07-07 Thread TianWei
> 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 import directly to sage, > i.e. a "something.sage