[sage-support] Re: Maple wiki

2008-07-03 Thread William Stein
On Thu, Jul 3, 2008 at 6:46 PM, Alec Mihailovs <[EMAIL PROTECTED]> wrote: > >> I'd like to copy a few pages (and from cython wiki, too). The one that I >> originally meant, was >> http://wiki.sagemath.org/A_short_introduction_to_SAGE > > Just did it, > http://mapleadvisor.com/cgi-bin/moin.cgi/A_sh

[sage-support] Re: Maple wiki

2008-07-03 Thread Alec Mihailovs
> I'd like to copy a few pages (and from cython wiki, too). The one that I > originally meant, was > http://wiki.sagemath.org/A_short_introduction_to_SAGE Just did it, http://mapleadvisor.com/cgi-bin/moin.cgi/A_short_introduction_to_SAGE It took more time and effort than I expected though, bec

[sage-support] Re: Accessing terms in an expression

2008-07-03 Thread Robert Bradshaw
On Jul 3, 2008, at 3:13 PM, phil wrote: > On Jul 2, 8:33 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote: >> sage: var('x,y') >> (x, y) >> sage: t = x^2 + y^2 >> sage: type(t) >> >> sage: t._operator >> >> sage: t._operands >> [x^2, y^2] >> sage: t._operands[0] >> x^2 > > How can I do comparisons o

[sage-support] Re: Maple wiki

2008-07-03 Thread Alec Mihailovs
>> There are few versions of the CC licensing though. Is it just BY? Or >> there >> are some other additions to it? > > I don't actually know for sure off the top of my head. Let me know > what page(s) you want to copy... Oh, I've just found it - it is linked to BY-SA (so I should add the licen

[sage-support] Re: Maple wiki

2008-07-03 Thread William Stein
On Thu, Jul 3, 2008 at 5:19 PM, Alec Mihailovs <[EMAIL PROTECTED]> wrote: > > William, > >> We state on the front page of the Sage wiki: "By making an explicit >> contribution to the Sage wiki (or the Sage documentation), one >> certifies that one's contribution is licensed under the Creative >> C

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread David Harvey
On Jul 3, 2008, at 8:22 PM, Daryl Hammond wrote: > I do not have a place to post the install logs. If you like, you can email them to me off-list and I can post them somewhere. > Here is the cat /proc/ > cpuinfo output: > > [EMAIL PROTECTED] ~]$ cat /proc/cpuinfo > processor : 0 > vendor

[sage-support] Re: Problems with re module in sage

2008-07-03 Thread William Stein
On Thu, Jul 3, 2008 at 10:56 AM, IanSR <[EMAIL PROTECTED]> wrote: > > I have just tested the following example re code in sage, and it fails > both on a Linux install and a Mac OS X install: > > import re > p = re.compile('(a(b)c)d') > m = p.match('abcd') > m.group(0) > # expect: 'abcd' > m.group(

[sage-support] Re: Permutations and cycle notation

2008-07-03 Thread William Stein
On Thu, Jul 3, 2008 at 10:50 AM, John Cremona <[EMAIL PROTECTED]> wrote: > > I would still say that this is a bug, since the following does work: > sage: Permutation('(1)(2)(3)(4,5)') > [1, 2, 3, 5, 4] > and the docstring says the Permutation can be given a string in cycle > notation, and 1-cycles

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread Daryl Hammond
I do not have a place to post the install logs. Here is the cat /proc/ cpuinfo output: [EMAIL PROTECTED] ~]$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Pentium(R) 4 CPU 2.80GHz stepping: 9 cpu M

[sage-support] Re: Maple wiki

2008-07-03 Thread Alec Mihailovs
William, > We state on the front page of the Sage wiki: "By making an explicit > contribution to the Sage wiki (or the Sage documentation), one > certifies that one's contribution is licensed under the Creative > Commons 3.0 license." So I think you could copy something > from the Sage wiki to

[sage-support] Re: Maple wiki

2008-07-03 Thread William Stein
On Thu, Jul 3, 2008 at 4:32 PM, Alec Mihailovs <[EMAIL PROTECTED]> wrote: > > From: "Harald Schilly" <[EMAIL PROTECTED]> > >> Well, there is already a http://wiki.sagemath.org/ - unless there are >> special reasons, sage+wiki stuff should go there. and about postings, >> if there is anyone who wou

[sage-support] Re: Maple wiki

2008-07-03 Thread Alec Mihailovs
From: "Harald Schilly" <[EMAIL PROTECTED]> > Well, there is already a http://wiki.sagemath.org/ - unless there are > special reasons, sage+wiki stuff should go there. and about postings, > if there is anyone who would like to maintain a faq-support collection > of postings is welcome ;) Well, th

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread David Harvey
On Jul 3, 2008, at 6:30 PM, Daryl Hammond wrote: > David, I have both install logs available. I have edited them "down" > to about 3,600 lines and 280 KB each. I hesitate to post that much > data here. If you are able to put them up somewhere on the web that would be great. Could you please

[sage-support] Re: Maple wiki

2008-07-03 Thread Harald Schilly
On Jul 3, 11:30 pm, "Alec Mihailovs" <[EMAIL PROTECTED]> wrote: > I started a wiki 2 weeks ago > athttp://mapleadvisor.com/cgi-bin/moin.cgi/StartingPage > ... and SAGE wiki, for example. > Everybody can edit everything. Well, there is already a http://wiki.sagemath.org/ - unless there are specia

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread mabshoff
On Jul 3, 3:30 pm, Daryl Hammond <[EMAIL PROTECTED]> wrote: Hi Daryl, > David, I have both install logs available.  I have edited them "down" > to about 3,600 lines and 280 KB each.  I hesitate to post that much > data here. you should not send the logs themselves to the list, but if possible p

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread Daryl Hammond
David, I have both install logs available. I have edited them "down" to about 3,600 lines and 280 KB each. I hesitate to post that much data here. -Daryl On Jul 3, 7:33 am, David Harvey <[EMAIL PROTECTED]> wrote: > Daryl, > > Do you have available the original install.log from your 3.0.1 and >

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread Daryl Hammond
William, I moved the 11 libgmp* files from /sage-3.0.2/local/lib/ to a new /sage-3.0.2/local/libsave/ and re-ran the sieve program. There was no change in the elapsed/cpu times (which follow): /home/daryl/sage-3.0.1/sage /home/daryl/UserData/sage/sieve.sage =

[sage-support] Re: Accessing terms in an expression

2008-07-03 Thread phil
On Jul 2, 8:33 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote: > sage: var('x,y') > (x, y) > sage: t = x^2 + y^2 > sage: type(t) > > sage: t._operator > > sage: t._operands > [x^2, y^2] > sage: t._operands[0] > x^2 How can I do comparisons on the operator? I need to test the operator so that I

[sage-support] Maple wiki

2008-07-03 Thread Alec Mihailovs
I started a wiki 2 weeks ago at http://mapleadvisor.com/cgi-bin/moin.cgi/StartingPage Originally it was planned to be a Maple wiki (even if I am not especially interested in Maple myself and my main advise for Mape users is to switch from Maple to SAGE), but it could be much wider than that - in

[sage-support] Re: Accessing terms in an expression

2008-07-03 Thread Alec Mihailovs
From: "David Joyner" <[EMAIL PROTECTED]> > I was wondering about this myself. Maple has a command that does > exactly this (I think it is the "ops" command). It's op. Maple represents objects using DAGs (directed acyclic graphs literally, but it also includes enumeration of child vertices), and

[sage-support] Re: Accessing terms in an expression

2008-07-03 Thread phil
> sage: var('x,y') > (x, y) > sage: t = x^2 + y^2 > sage: type(t) > > sage: t._operator > > sage: t._operands > [x^2, y^2] > sage: t._operands[0] > x^2 It looks like you can access the expression as a tree of binary operators and their operands this way. However, the order of the operands in th

[sage-support] problems building matplotlib on Ubuntu 8.04

2008-07-03 Thread Adam Webb
Hi all, I have been having problems with Matplotlib on Ubuntu 8.04 (AMD-64). Specifically, I am having trouble with the backends. If I build Matplotlib separately I get the following for information about backends. OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.15beta5

[sage-support] Re: Problems with re module in sage

2008-07-03 Thread David Harvey
On Jul 3, 2008, at 1:56 PM, IanSR wrote: > I have just tested the following example re code in sage, and it fails > both on a Linux install and a Mac OS X install: > > import re > p = re.compile('(a(b)c)d') > m = p.match('abcd') > m.group(0) > # expect: 'abcd' > m.group(1) > # expect: 'abc' > m.

[sage-support] Problems with re module in sage

2008-07-03 Thread IanSR
I have just tested the following example re code in sage, and it fails both on a Linux install and a Mac OS X install: import re p = re.compile('(a(b)c)d') m = p.match('abcd') m.group(0) # expect: 'abcd' m.group(1) # expect: 'abc' m.group(2) # expect: 'b' This is take from: http://www.amk.ca/py

[sage-support] Re: Permutations and cycle notation

2008-07-03 Thread John Cremona
I would still say that this is a bug, since the following does work: sage: Permutation('(1)(2)(3)(4,5)') [1, 2, 3, 5, 4] and the docstring says the Permutation can be given a string in cycle notation, and 1-cycles are usually omitted. Looking at the code (Permutation??) the error is in the call t

[sage-support] Re: Permutations and cycle notation

2008-07-03 Thread Pierre
ooops. So sorry for not reading the doc fully. The answer is to use cycle_string(singletons= True). pierre On Jul 3, 7:38 pm, Pierre <[EMAIL PROTECTED]> wrote: > hi all, > > I'm confused with the cycle notation for permutations (bug ?) > While the following works: > > sage: Permutation( '(1,2)'

[sage-support] Permutations and cycle notation

2008-07-03 Thread Pierre
hi all, I'm confused with the cycle notation for permutations (bug ?) While the following works: sage: Permutation( '(1,2)' ) the following yields an error: sage: Permutation( '(4,5)' ) IndexError: list assignment index out of range What's confusing is that if you go: sage: x= Permutation( (

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread William Stein
No, python does not use gmp. On 7/3/08, Jason Grout <[EMAIL PROTECTED]> wrote: > > Jason Grout wrote: >> Daryl Hammond wrote: >>> Jason, your tips on initializing the array and on counting the array >>> values are appreciated. I'll add these to the next version of the >>> program. I'll also inc

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread Jason Grout
Jason Grout wrote: > Daryl Hammond wrote: >> Jason, your tips on initializing the array and on counting the array >> values are appreciated. I'll add these to the next version of the >> program. I'll also incorporate your cython suggestion as well. As >> you point out, all three of these will s

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread Jason Grout
Daryl Hammond wrote: > Jason, your tips on initializing the array and on counting the array > values are appreciated. I'll add these to the next version of the > program. I'll also incorporate your cython suggestion as well. As > you point out, all three of these will speed up the program (and

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread David Harvey
On Jul 3, 2008, at 8:29 AM, David Harvey wrote: > > There is no slowdown between sage-3.0.1 and 3.0.2 with the original > posted code, on sage.math: > > Linux sage 2.6.18-6-amd64 #1 SMP Sun Feb 10 17:50:19 UTC 2008 x86_64 > GNU/Linux > > So it looks like something processor-specific. H, the

[sage-support] Re: Accessing terms in an expression

2008-07-03 Thread William Stein
On Thu, Jul 3, 2008 at 4:58 AM, David Joyner <[EMAIL PROTECTED]> wrote: > > I was wondering about this myself. Maple has a command that does > exactly this (I think it is the "ops" command). Do you think SAGE should have > an "official" analog of that? Yes, definitely. William --~--~-~-

[sage-support] Re: Efficient selection from a list: Is there a tric?

2008-07-03 Thread Carl Witty
On Jul 2, 10:09 pm, Rolandb <[EMAIL PROTECTED]> wrote: > for a in range(1,5): >  for b in range(1,5): >   for c in range(1,5): >    for d in range(1,5): >     if a<>b<>c<>d: By the way, the above line doesn't mean what you want. It checks that a<>b, that b<>c, and that c<>d, but it doesn't check

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread William Stein
> I then re-ran the sieve program under sage-3.0.1 and sage-3.0.2. > There was no > change; sage-3.0.2 still runs significantly slower (see detailed runs > below). > > I then looked at /home/daryl/sage-3.0.2/local/lib: > > [EMAIL PROTECTED] lib]$ ls libgmp*.* -l > -rwxr-xr-x 1 daryl daryl793 2

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread Daryl Hammond
Jason, your tips on initializing the array and on counting the array values are appreciated. I'll add these to the next version of the program. I'll also incorporate your cython suggestion as well. As you point out, all three of these will speed up the program (and other programs I have) signif

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread Daryl Hammond
William, I ran: /home/daryl/sage-3.0.2/sage -i /home/daryl/sage-3.0.1/spkg/standard/ gmp-4.2.1.p14.spkg The install completed successfully and install_package() shows both gmp-4.2.1.p14 and gmp-4.2.2 installed (I could find no sage command to remove/ uninstall a package): [EMAIL PROTECTED] sage]

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread David Harvey
Daryl, Do you have available the original install.log from your 3.0.1 and 3.0.2 builds? It would be very interesting to see what happened during the GMP build. david On Jul 2, 2008, at 7:11 PM, Daryl Hammond wrote: > > I recently did a clean install of Fedora 9 (formerly running Fedora 8)

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread David Harvey
There is no slowdown between sage-3.0.1 and 3.0.2 with the original posted code, on sage.math: Linux sage 2.6.18-6-amd64 #1 SMP Sun Feb 10 17:50:19 UTC 2008 x86_64 GNU/Linux So it looks like something processor-specific. david On Jul 2, 2008, at 7:11 PM, Daryl Hammond wrote: > > I recentl

[sage-support] Re: Accessing terms in an expression

2008-07-03 Thread Simon King
Dear David, On Jul 3, 1:58 pm, "David Joyner" <[EMAIL PROTECTED]> wrote: > I was wondering about this myself. Maple has a command that does > exactly this (I think it is the "ops" command). Do you think SAGE should have > an "official" analog of that? +1. I was missing such command in SAGE, too.

[sage-support] Re: Accessing terms in an expression

2008-07-03 Thread David Joyner
I was wondering about this myself. Maple has a command that does exactly this (I think it is the "ops" command). Do you think SAGE should have an "official" analog of that? On Wed, Jul 2, 2008 at 11:33 PM, Mike Hansen <[EMAIL PROTECTED]> wrote: > > Hi Phil, > > I don't think there is an official

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread Jason Grout
Daryl Hammond wrote: > Thanks Alec for pointing out the incorrect prime count (I was failing > to mark the > last element in the array as non-prime). > > Michael, I divided the sieve program into three parts: create array, > mark primes, and > count primes. I then ran the sieve program under sag

[sage-support] Re: Support for creating data bases; fast linear algebra over finite fields

2008-07-03 Thread Simon King
Dear Martin, On Jul 3, 12:58 pm, Martin Albrecht <[EMAIL PROTECTED]> wrote: >http://www.sqlalchemy.org/ > > is in Sage ... Eierlegende Wollmichsau (1) Thank you! Simon --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Re: Support for creating data bases; fast linear algebra over finite fields

2008-07-03 Thread Martin Albrecht
> However, my main question concerns tools to create and maintain a data > base. Are there any in Sage, and where are they documented? http://www.sqlalchemy.org/ is in Sage ... Eierlegende Wollmichsau (1) Cheers, Martin (1) http://www.dict.cc/?s=eierlegende%20wollmilchsau -- name: Martin

[sage-support] Re: Support for creating data bases; fast linear algebra over finite fields

2008-07-03 Thread Simon King
On Jul 2, 5:54 pm, Simon King <[EMAIL PROTECTED]> wrote: > And in odd degree, by "free" graded-commutative, i mean a tensor > product of a polynomial ring (whose generators are in even degrees) ... Oops, this was supposed to be "And in odd CHARACTERISTIC,..." Sorry. However, my main question

[sage-support] Re: Efficient selection from a list: Is there a tric?

2008-07-03 Thread Lee McCuller
try something such as combo = range(1,5) for a in combo[:]: combo.remove(a) for b in combo[:]: combo.remove(b) for c in combo[:]: combo.remove(c) for d in combo[:]: print a,b,c,d combo.append(c) combo.append(b)

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread William Stein
On Wed, Jul 2, 2008 at 11:33 PM, Daryl Hammond <[EMAIL PROTECTED]> wrote: > > Thanks Alec for pointing out the incorrect prime count (I was failing > to mark the > last element in the array as non-prime). > > Michael, I divided the sieve program into three parts: create array, > mark primes, and >