[sage-devel] Polynomials are immutable (really?)

2010-08-02 Thread Sebastian Pancratz
Dear all, As I'm sure most people here know, polynomials in Sage are kind of immutable - they are meant to be immutable and (most) methods are allowed to assume this to improve their performance, but sometimes there an interface is (see _unsafe_mutate) to modify a polynomial nonetheless. I've rec

[sage-devel] Re: Polynomials are immutable (really?)

2010-08-02 Thread Michael Brickenstein
I just tried it and the standard library functions also use that "optimization". In [1]: from copy import copy In [2]: l="slkl" In [3]: copy(l) is l Out[3]: True Cheers, Michael -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an emai

[sage-devel] Re: Question on power series with implications for elliptic curves

2010-08-02 Thread koffie
Hej Niles, I wonder why in your example you do the quadratic twist thing. In this case E is equal to it's quadratic twist. (at least without the patch). sage: E = EllipticCurve('53a1') sage: Et, D = E.minimal_quadratic_twist() sage: E Elliptic Curve defined by y^2 + x*y + y = x^3 - x^2 over Ratio

[sage-devel] Re: Polynomials are immutable (really?)

2010-08-02 Thread Sebastian Pancratz
On 2 Aug, 09:57, Michael Brickenstein wrote: > I just tried it and the standard library functions also use that > "optimization". > > In [1]: from copy import copy > > In [2]: l="slkl" > > In [3]: copy(l) is l > Out[3]: True > > Cheers, > Michael Perhaps my knowledge of Python isn't strong enough

Re: [sage-devel] Re: Polynomials are immutable (really?)

2010-08-02 Thread Michael Brickenstein
That's a very hard question. I found http://groups.google.com/group/sage-devel/browse_thread/thread/7499c3e834bd675b/5b2f8d39f4137684?lnk=gst&q=_unsafe_mutate+power+series#5b2f8d39f4137684 for more background. Cheers, Michael Am 02.08.2010 um 11:08 schrieb Sebastian Pancratz: > On 2 Aug, 09:5

Re: [sage-devel] Re: Polynomials are immutable (really?)

2010-08-02 Thread Michael Brickenstein
str is very much immutable. So you can't even set some custom attribute. For that you have to sublass. Look what happens, when you subclass str and get some mutable class this way: In [10]: class A(str): :pass In [11]: a=A() In [13]: copy(a) is a Out[13]: False while copy is the i

[sage-devel] Iterators for various structures

2010-08-02 Thread Johan Nielsen
Trac ticket 8361 (http://trac.sagemath.org/sage_trac/ticket/8361) implements an iterator for vectors over integers. I dislike this extension for several reasons: -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+uns

[sage-devel] Re: Iterators for various structures

2010-08-02 Thread Johan S. R. Nielsen
Argh, my mail client just tricked me. Anyway: The main reason is that I see no mathematical obvious way of iterating through all vectors of the integers. The (arbitrarily) decided way in the patch seems usable in only very few cases (and it does not even contain vectors with any negative elements)

Re: [sage-devel] Iterators for various structures

2010-08-02 Thread David Joyner
Hi Johan: Maybe your email got cut off somehow? I'm not sure what you were going to say, but sometimes you can also make comments on the ticket itself. If you don't have a trac account, please see http://trac.sagemath.org/sage_trac/prefs/account A guide to the trac system is here: http://www.sage

[sage-devel] Re: Iterators for various structures

2010-08-02 Thread Johan S. R. Nielsen
Now my compilation of the patched Sage finished, and it seems that the patch doesn't even work anymore. SearchTree doesn't have a breadth_first_search_iterator; maybe that class has changed while the patch has been waiting for review? On Aug 2, 12:09 pm, "Johan S. R. Nielsen" wrote: > Argh, my ma

[sage-devel] Re: Iterators for various structures

2010-08-02 Thread Johan S. R. Nielsen
Hi David Thanks. I thought I would start a discussion here, though, because it seems like a general issue whether or not to add iterators on such structures. Cheers, Johan On Aug 2, 12:15 pm, David Joyner wrote: > Hi Johan: > > Maybe your email got cut off somehow? > > I'm not sure what you were

[sage-devel] Re: Question on power series with implications for elliptic curves

2010-08-02 Thread Niles
Hello Maarten, Thanks for your reply; I'm afraid my ignorance of elliptic curves is broader than you expect :) On Aug 2, 5:03 am, koffie wrote: > Hej Niles, > > I wonder why in your example you do the quadratic twist thing. In this > case E is equal to it's quadratic twist. (at least without the

Re: [sage-devel] Re: Iterators for various structures

2010-08-02 Thread David Joyner
Good. Looks like you are on trac after all. Can you please add your initials and real name to the list at the bottom of the main trac page http://trac.sagemath.org/sage_trac? The ticket is by nborie (= Nicolas Borie, Université Paris Sud XI, Orsay) who I think works with N Thiery in the combinator

Re: [sage-devel] Re: [sage-solaris] building on the skynet machines fulvia and mark

2010-08-02 Thread Burcin Erocal
Hi Dave, On Mon, 2 Aug 2010 04:49:22 +0100 David Kirkby wrote: > Looking at that list of doctest failures on Cygwin, there's a high > correlation between those packages which are presenting problems on > Cygwin, and those where the Sun Studio compiler will refuse to compile > the code on Solaris

Re: [sage-devel] Re: [sage-solaris] building on the skynet machines fulvia and mark

2010-08-02 Thread Dr. David Kirkby
On 08/ 2/10 11:28 AM, Burcin Erocal wrote: Hi Dave, On Mon, 2 Aug 2010 04:49:22 +0100 David Kirkby wrote: Looking at that list of doctest failures on Cygwin, there's a high correlation between those packages which are presenting problems on Cygwin, and those where the Sun Studio compiler will

[sage-devel] Re: Question on power series with implications for elliptic curves

2010-08-02 Thread Simon King
Hi Niles and Koffie! On 2 Aug., 12:26, Niles wrote: > ... > (Also, I have checked the example given in the docstring for elliptic > curve 14a, and the power series patch does not affect this answer.  In > fact the patch passes all tests from 'make ptestlong' except for the > one mentioned in this

[sage-devel] difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Dima Pasechnik
Running sage's python on a python file gives ImportError: sage subshell$ sage -python lp.py Traceback (most recent call last): File "lp.py", line 3, in from cvxopt import matrix File "/home/dima/sage/sage-4.5.1/local/lib/python2.6/site-packages/ cvxopt/__init__.py", line 30, in impor

[sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Harald Schilly
On 2 Aug., 13:48, Dima Pasechnik wrote: > Any ideas where to look? > Can you look up what LD_LIBRARY_PATH says inside the sage shell (sage - sh) and when running -python lp.py ? import os; os.environ['LD_LIBRARY_PATH'] Maybe that's different. H -- To post to this group, send an email to sage

[sage-devel] Re: Iterators for various structures

2010-08-02 Thread Nicolas Borie
Hello, I put a message on the trac 8361... I still work on the SearchForest feature (and rebase it because it no longer worked with 4.5.2). But it is definitely right that an iterator of IntergerVectors doesn't deserve to use the SearchForest engine (SearchForest is only adapted for poor tree-lik

[sage-devel] Re: Installing optional R packages.

2010-08-02 Thread ancienthart
*sigh* And I bludgeon the solution out the very next night. Here is how I got the optional package automap to install into a binary sage R. Go into the sage directory and edit the following files: local/bin/R and local/lib/R/bin/R and change all the hard-set user variables "/scratch/" to the t

[sage-devel] Re: Polynomials are immutable (really?)

2010-08-02 Thread Sebastian Pancratz
On 2 Aug, 10:39, Michael Brickenstein wrote: > str  is very much immutable. > So you can't even set some custom attribute. > For that you have to sublass. Look what happens, when you subclass str >  and get some mutable class > this way: > > In [10]: class A(str): >    :    pass > > In [11]: a

[sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Dima Pasechnik
I just found that linking in addition against libgcc_s.so cures the problem. This is suspiciously similar to (presumably) freebsd-specific lapack trouble discussed in http://wiki.sagemath.org/freebsd/sage-4.5 So this seems to be a proof that this is rather gcc-4.5-related, rather than FreedBSD-spe

Re: [sage-devel] difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Dr. David Kirkby
On 08/ 2/10 12:48 PM, Dima Pasechnik wrote: Running sage's python on a python file gives ImportError: sage subshell$ sage -python lp.py Traceback (most recent call last): File "lp.py", line 3, in from cvxopt import matrix File "/home/dima/sage/sage-4.5.1/local/lib/python2.6/site-packa

[sage-devel] A scalable framework for error-correcting code functionality in Sage

2010-08-02 Thread Johan S. R. Nielsen
As part of my newly begun Ph.D studies, I am planning to extend Sage's functionality in error correcting codes. I have already had some conversations with David Joyner about this, and we agreed that before any major work should be undertaken, a general framework of the classes and functionality sho

[sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Dima Pasechnik
Dave, I don't have gcc-4.5.1 installed anywhere, not yet at least. You can try this yourself ( first without the 1-line change below, then with: install the cvxopt-1.1.2.spkg from the link I posted on #6456, run spkg-check, first without the 1-line change below, then with) diff -r 117baef5ef34 pat

[sage-devel] experimental packages

2010-08-02 Thread Uri
Hi, I'd like to add an experimental package, but I can't find the procedure to do it anywhere. Do I have to open a Trac ticket? Or just post a message here with a link to the .spkg? Is a description of the package needed? Thanks in advance! Uri -- To post to this group, send an email to sage-dev

[sage-devel] Re: sage -clone failing with "...untrusted file/user..." message

2010-08-02 Thread Dima Pasechnik
Hi Rob, well, I am familiar with cloning of my own sage installs. I just thought that cloning a system-wide (or another user's) sage install should work, too :-) Dima On Aug 2, 1:11 am, Rob Beezer wrote: > Hi Dima, > > I don't have any experience with making a clones from/within a system- > wide

Re: [sage-devel] Re: sage -clone failing with "...untrusted file/user..." message

2010-08-02 Thread Willem Jan Palenstijn
On Mon, Aug 02, 2010 at 07:05:50AM -0700, Dima Pasechnik wrote: > Hi Rob, > well, I am familiar with cloning of my own sage installs. > I just thought that cloning a system-wide (or another user's) > sage install should work, too :-) "sage -clone" doesn't clone a sage install. It only clones the s

[sage-devel] Re: Cloning is frustratingly slow

2010-08-02 Thread Johan S. R. Nielsen
I agree. I started developing for Sage last week and used the clone function twice before moving on to queues. Queues are not difficult to understand and the bookkeeping is rather minimal, so I think that the Developer's guide could skip clone completely. As an aside, how sophisticated are the var

[sage-devel] Re: Installing optional R packages.

2010-08-02 Thread kcrisman
Dear Joal, Was this a downloaded binary? The variable '/scratch/...' seems to indicate this is the case. This is usually not a problem on a 'home- built' one - I've installed lots of R packages using sage: r.install_packages() I'm opening a Trac ticket for this, but unfortunately don't know en

[sage-devel] Re: Cloning is frustratingly slow

2010-08-02 Thread kcrisman
I disagree. For people who are not used to developing at all, cloning is a vital tool - just like hg_sage and the like. That doesn't mean that cloning should build the documentation automatically! I think there are even some tickets open to NOT build doc with an arbitrary build/clone. Doctestin

Re: [sage-devel] experimental packages

2010-08-02 Thread Dr. David Kirkby
On 08/ 2/10 02:58 PM, Uri wrote: Hi, I'd like to add an experimental package, but I can't find the procedure to do it anywhere. Do I have to open a Trac ticket? Or just post a message here with a link to the .spkg? Is a description of the package needed? Thanks in advance! Uri I would persona

Re: [sage-devel] experimental packages

2010-08-02 Thread David Joyner
On Mon, Aug 2, 2010 at 9:58 AM, Uri wrote: > Hi, > I'd like to add an experimental package, but I can't find the > procedure to do it anywhere. Some info is here: http://www.sagemath.org/doc/developer/disseminating_code.html > Do I have to open a Trac ticket? Yes please. > Or just post a mess

Re: [sage-devel] Re: is this kind of license Sage-compatible?

2010-08-02 Thread Dr. David Kirkby
On 08/ 1/10 04:07 PM, Dima Pasechnik wrote: I have written to FSF. So far, only an automated reply, giving the case number: "Your request has been assigned an ID of [gnu.org #599076]." We'll see... Best, Dima Personally I feel whatever may be the legality of the word "should" in this license,

Re: [sage-devel] experimental packages

2010-08-02 Thread Dr. David Kirkby
On 08/ 2/10 03:43 PM, Dr. David Kirkby wrote: I don't think opening a trac ticket will do any harm. Just make it clear it's experimental. I should add to that, it would be good if the difference between experimental and optional could be clarified. The implication from reading the web pages i

[sage-devel] Re: A scalable framework for error-correcting code functionality in Sage

2010-08-02 Thread Ryan Hinton
Johan, I certainly do not qualify as a Sage veteran, but I have done some work on the engineering side of coding theory (LDPC codes). Your framework sounds good to me. In fact, it's somewhat similar to what I have done. In my case, a particular code is relatively uninteresting, so I have been u

[sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Dima Pasechnik
Dave, It looks more like a linker bug/feature --- the same behaviour on skynet's eno (Linux), but no errors on skynet's mark (Solaris, which I believe uses Sun's linker). Dima On Aug 2, 3:08 pm, "Dr. David Kirkby" wrote: > On 08/ 2/10 12:48 PM, Dima Pasechnik wrote: > > Running sage's python o

Re: [sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Willem Jan Palenstijn
On Mon, Aug 02, 2010 at 08:33:49AM -0700, Dima Pasechnik wrote: > Dave, > > It looks more like a linker bug/feature --- the same behaviour on > skynet's eno (Linux), but > no errors on skynet's mark (Solaris, which I believe uses Sun's > linker). Is it a fresh build or an upgrade of sage? -Wille

Re: [sage-devel] experimental packages

2010-08-02 Thread William Stein
On Mon, Aug 2, 2010 at 7:58 AM, Dr. David Kirkby wrote: > On 08/ 2/10 03:43 PM, Dr. David Kirkby wrote: > >> I don't think opening a trac ticket will do any harm. Just make it clear >> it's experimental. > > I should add to that, it would be good if the difference between > experimental and option

[sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Dima Pasechnik
a fresh build on taurus. On mark and eno I used builds by John Palmieri, so I don't know about them. Dima On Aug 2, 5:57 pm, Willem Jan Palenstijn wrote: > On Mon, Aug 02, 2010 at 08:33:49AM -0700, Dima Pasechnik wrote: > > Dave, > > > It looks more like a linker bug/feature --- the same behavi

Re: [sage-devel] global functions versus atributes

2010-08-02 Thread William Stein
On Sun, Aug 1, 2010 at 5:40 PM, koffie wrote: > Hej All, > > I started developing for sage not so long ago and I wonder if there > are some good coding practices / conventions for dealing with global > functions and attributes which have the same name and also do the same > thing. An example of su

Re: [sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Dr. David Kirkby
On 08/ 2/10 02:58 PM, Dima Pasechnik wrote: Dave, I don't have gcc-4.5.1 installed anywhere, not yet at least. You can try this yourself ( first without the 1-line change below, then with: install the cvxopt-1.1.2.spkg from the link I posted on #6456, run spkg-check, first without the 1-line chan

[sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Dima Pasechnik
I am currently building the atlas spkg with (appropriately adjusted) patch on #9600, so that libgcc_s is linked in, and see if it fixes the trouble. Actually, it looks like a blocker for the release... Dima On Aug 2, 6:02 pm, Dima Pasechnik wrote: > a fresh build on taurus. > On mark and eno I

[sage-devel] Re: Polynomials are immutable (really?)

2010-08-02 Thread mda_
SageDevs, In the interest of "gotchas", please consider the following: The built-in str, and the module string are different, though both return type str according to type(). Example: d...@dv9000-laptop:~$ python2.6 Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type "he

[sage-devel] Re: ImportError: The _imaging C module is not installed

2010-08-02 Thread kcrisman
On Jun 15, 1:14 pm, "Justin C. Walker" wrote: > On Jun 15, 2010, at 09:50 ,kcrismanwrote: > > > I haven't posted about this before, but on my OSX 10.6 MacBook Pro, I > > have consistently gotten this error when doing doctesting ofsage/ > > plot/ > > plot3d/base.pyx.  Built from scratch, doesn't

[sage-devel] Possible blocker ? [Was: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"]

2010-08-02 Thread Dima Pasechnik
I wasn't able to figure out how to make the appropriate change to ATLAS spkg using that patch. Perhaps someone more knowledgeable about ATLAS can have a go at it. Dima On Aug 2, 6:06 pm, Dima Pasechnik wrote: > I am currently building the atlas spkg with (appropriately adjusted) > patch on > #96

[sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread John H Palmieri
On Aug 2, 9:02 am, Dima Pasechnik wrote: > a fresh build on taurus. > On mark and eno I used builds by John Palmieri, so I don't know about > them. > > Dima > > On Aug 2, 5:57 pm, Willem Jan Palenstijn wrote: > > > > > On Mon, Aug 02, 2010 at 08:33:49AM -0700, Dima Pasechnik wrote: > > > Dave, >

[sage-devel] Re: experimental packages

2010-08-02 Thread John H Palmieri
On Aug 2, 9:00 am, William Stein wrote: > On Mon, Aug 2, 2010 at 7:58 AM, Dr. David Kirkby > > wrote: > > On 08/ 2/10 03:43 PM, Dr. David Kirkby wrote: > > >> I don't think opening a trac ticket will do any harm. Just make it clear > >> it's experimental. > > > I should add to that, it would be g

[sage-devel] Re: ImportError: The _imaging C module is not installed

2010-08-02 Thread John H Palmieri
On Aug 2, 9:34 am, kcrisman wrote: > On Jun 15, 1:14 pm, "Justin C. Walker" wrote: > > > On Jun 15, 2010, at 09:50 ,kcrismanwrote: > > > > I haven't posted about this before, but on my OSX 10.6 MacBook Pro, I > > > have consistently gotten this error when doing doctesting ofsage/ > > > plot/ >

[sage-devel] Re: experimental packages

2010-08-02 Thread kcrisman
> > Could you formulate some more precise descriptions of experimental and > > optional, for discussion? > > I think that, among other things, optional packages should build on > all "supported platforms" (whatever that means -- this phrase needs to > be defined carefully somewhere: see #9487), wh

Re: [sage-devel] Re: experimental packages

2010-08-02 Thread William Stein
On Mon, Aug 2, 2010 at 10:52 AM, kcrisman wrote: > >> > Could you formulate some more precise descriptions of experimental and >> > optional, for discussion? >> >> I think that, among other things, optional packages should build on >> all "supported platforms" (whatever that means -- this phrase n

[sage-devel] Re: ImportError: The _imaging C module is not installed

2010-08-02 Thread kcrisman
Great, this is exactly what I had figured was going on now. It is very unfortunate that PIL does this. But at any rate I am making sure these tickets have that thread referenced, which they currently don't. Also, what other effects will SAGE_BINARY_BUILD have on a source build? After all, I'm n

[sage-devel] Re: ImportError: The _imaging C module is not installed

2010-08-02 Thread John H Palmieri
On Aug 2, 11:01 am, kcrisman wrote: > Great, this is exactly what I had figured was going on now.  It is > very unfortunate that PIL does this.  But at any rate I am making sure > these tickets have that thread referenced, which they currently > don't. > > Also, what other effects will SAGE_BINA

[sage-devel] Re: Polynomials are immutable (really?)

2010-08-02 Thread mda_
Caveat: Hopefully my chaining of operators there didn't mislead, that was unintended. I think most of what I said still holds, if not all. -Don On Aug 2, 9:14 am, mda_ wrote: > SageDevs, > > In the interest of "gotchas", please consider the following: > > The built-in str, and the module string

[sage-devel] Re: ImportError: The _imaging C module is not installed

2010-08-02 Thread kcrisman
On Aug 2, 2:05 pm, John H Palmieri wrote: > On Aug 2, 11:01 am, kcrisman wrote: > > > Great, this is exactly what I had figured was going on now.  It is > > very unfortunate that PIL does this.  But at any rate I am making sure > > these tickets have that thread referenced, which they currently

[sage-devel] Re: experimental packages

2010-08-02 Thread kcrisman
On Aug 2, 1:54 pm, William Stein wrote: > On Mon, Aug 2, 2010 at 10:52 AM, kcrisman wrote: > > >> > Could you formulate some more precise descriptions of experimental and > >> > optional, for discussion? > > >> I think that, among other things, optional packages should build on > >> all "suppor

[sage-devel] Re: experimental packages

2010-08-02 Thread kcrisman
On Aug 2, 2:17 pm, kcrisman wrote: > On Aug 2, 1:54 pm, William Stein wrote: > > > > > > > On Mon, Aug 2, 2010 at 10:52 AM, kcrisman wrote: > > > >> > Could you formulate some more precise descriptions of experimental and > > >> > optional, for discussion? > > > >> I think that, among other th

Re: [sage-devel] Re: ImportError: The _imaging C module is not installed

2010-08-02 Thread Tim Joseph Dumol
Hi, SAGE_BINARY_BUILD was introduced as a compromise when it was decided that libjpeg and libtiff were to be introduced first as optional packages, since PIL is a standard package. Without SAGE_BINARY_BUILD set, binary distributions have PIL link with libjpeg and libtiff as shared libraries, which

[sage-devel] Re: experimental packages

2010-08-02 Thread Harald Schilly
On Aug 2, 4:58 pm, "Dr. David Kirkby" wrote: > .. if the difference between experimental > and optional could be clarified. Personally. if I could define it, I would use these definitions: 1. standard: that's well tested, included in each distribution, essential, and the responsibility of the Sa

[sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Peter Jeremy
On 2010-Aug-02 05:41:22 -0700, Dima Pasechnik wrote: >I just found that linking in addition against libgcc_s.so cures the >problem. >This is suspiciously similar to (presumably) freebsd-specific lapack >trouble discussed in >http://wiki.sagemath.org/freebsd/sage-4.5 And trac #9600 (as has been di

Re: [sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Peter Jeremy
On 2010-Aug-02 06:58:10 -0700, Dima Pasechnik wrote: >install the cvxopt-1.1.2.spkg from the link I posted on #6456, >run spkg-check, first without the 1-line change below, then with) > >diff -r 117baef5ef34 patches/setup.py >--- a/patches/setup.py Sun Aug 01 11:48:42 2010 -0700 >+++ b/patches/se

Re: [sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Willem Jan Palenstijn
On Tue, Aug 03, 2010 at 05:23:17AM +1000, Peter Jeremy wrote: > On 2010-Aug-02 06:58:10 -0700, Dima Pasechnik wrote: > >install the cvxopt-1.1.2.spkg from the link I posted on #6456, > >run spkg-check, first without the 1-line change below, then with) > > > >diff -r 117baef5ef34 patches/setup.py >

[sage-devel] Re: Polynomials are immutable (really?)

2010-08-02 Thread mda_
Another Caveat: str doesn't implement .__copy__ or .__deepcopy__ so I'm being sillybut the main point being "is" is object comparison not equality. Ok, email on exponential backoff!! ;-) On Aug 2, 11:06 am, mda_ wrote: > Caveat: Hopefully my chaining of operators there didn't mislead, that >

[sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Dima Pasechnik
On Aug 2, 9:23 pm, Peter Jeremy wrote: > On 2010-Aug-02 06:58:10 -0700, Dima Pasechnik wrote: > > >install the cvxopt-1.1.2.spkg from the link I posted on #6456, > >run spkg-check, first without the 1-line change below, then with) > > >diff -r 117baef5ef34 patches/setup.py > >--- a/patches/setu

[sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Dima Pasechnik
my taurus build of sage 4.5.1 has liblapack.so just fine... On Aug 2, 10:11 pm, Willem Jan Palenstijn wrote: > On Tue, Aug 03, 2010 at 05:23:17AM +1000, Peter Jeremy wrote: > > On 2010-Aug-02 06:58:10 -0700, Dima Pasechnik wrote: > > >install the cvxopt-1.1.2.spkg from the link I posted on #6456

[sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread John H Palmieri
On Aug 2, 1:11 pm, Willem Jan Palenstijn wrote: > On Tue, Aug 03, 2010 at 05:23:17AM +1000, Peter Jeremy wrote: > > On 2010-Aug-02 06:58:10 -0700, Dima Pasechnik wrote: > > >install the cvxopt-1.1.2.spkg from the link I posted on #6456, > > >run spkg-check, first without the 1-line change below,

[sage-devel] Some feature requests on SAGE - Adding Engineering to the target audience

2010-08-02 Thread cousteau
I'm studying engineering, and I'm used to some programs such as Matlab, Maple, etc. When I knew about SAGE I found it very powerful, simple and well structured, but I quickly found out that it wouldn't be very useful in engineering, which is more oriented to numerical analysis and simple math opera

Re: [sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Willem Jan Palenstijn
On Mon, Aug 02, 2010 at 01:28:36PM -0700, Dima Pasechnik wrote: > my taurus build of sage 4.5.1 has liblapack.so just fine... Ah, now I notice it's generated by atlas. (Sorry, I stupidly missed that rather obvious bit of #9600). Atlas seems to use ld directly to link liblapack.a into liblapack.so

Re: [sage-devel] Some feature requests on SAGE - Adding Engineering to the target audience

2010-08-02 Thread William Stein
On Mon, Aug 2, 2010 at 1:38 PM, cousteau wrote: > I'm studying engineering, and I'm used to some programs such as > Matlab, Maple, etc. When I knew about SAGE I found it very powerful, > simple and well structured, but I quickly found out that it wouldn't > be very useful in engineering, which is

[sage-devel] Re: Polynomials are immutable (really?)

2010-08-02 Thread mda_
*groan* I did the equivalent of: a = "blah de BLAH" b = "%s" % a a is b => False a == b => True It makes a deepcopy or a double reference for all I know. Even two equal immutable strings fail the "is" test, so I stand by my statement that "is" is bad form unless you are working with an object t

Re: [sage-devel] Some feature requests on SAGE - Adding Engineering to the target audience

2010-08-02 Thread Dr. David Kirkby
On 08/ 2/10 09:47 PM, William Stein wrote: On Mon, Aug 2, 2010 at 1:38 PM, cousteau wrote: I'm studying engineering, and I'm used to some programs such as Matlab, Maple, etc. When I knew about SAGE I found it very powerful, simple and well structured, but I quickly found out that it wouldn't be

[sage-devel] Re: Polynomials are immutable (really?)

2010-08-02 Thread mda_
> str  is very much immutable. > So you can't even set some custom attribute. I found a way to cheat. =) Python 2.6 has backported the Python 3000 bytearray() method, which is basically just a mutable str. No import statement needed. http://www.python.org/dev/peps/pep-3112/ So you can copy yo

[sage-devel] ATLAS build time 32-bit vs 64-bit

2010-08-02 Thread Dr. David Kirkby
When I build ATLAS on my OpenSolaris box with SAGE64=yes, it takes about 5 minutes to build as a 64-bit library. I can live with that. Building ATLAS as a 32-bit binary (i.e. SAGE64 is not set), on the same hardware, seems to be taking forever. ATLAS has been building an hour, and its still no

Re: [sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Willem Jan Palenstijn
On Mon, Aug 02, 2010 at 08:43:53PM +, Willem Jan Palenstijn wrote: > On Mon, Aug 02, 2010 at 01:28:36PM -0700, Dima Pasechnik wrote: > > my taurus build of sage 4.5.1 has liblapack.so just fine... > > Ah, now I notice it's generated by atlas. (Sorry, I stupidly missed that > rather > obvious

[sage-devel] Re: Some feature requests on SAGE - Adding Engineering to the target audience

2010-08-02 Thread Maurizio
I'd like to jump in, since I often struggles with those issues. I still suggest to estimate the engineering audience in this list to coordinate a little and maybe just start with a little wiki to cooperate. >From my little experience, I can tell you that SAGE is a wonderful investment for its inter

[sage-devel] Re: Some feature requests on SAGE - Adding Engineering to the target audience

2010-08-02 Thread Maurizio
Sorry, I mistyped the last part, which I replicate here. I would add to this list a different notebook interface, something like a single file editor, plus an online console... something like Matlab's IDE :) I'm actually investigating how difficult it would be using codemirror plugin (already in S

Re: [sage-devel] Re: difference in behaviour of "sage -python blah.py" vs. "sage and then load('blah.py')"

2010-08-02 Thread Mitesh Patel
On 08/02/2010 03:33 PM, John H Palmieri wrote: >> I'm trying to reproduce this, but on skynet's taurus I don't even get a >> liblapack.so, but only liblapack.a. (The build isn't done yet, but the lapack >> package is done.) >> >> Am I missing something? I checked, but none of my recent sage builds

Re: [sage-devel] Re: Some feature requests on SAGE - Adding Engineering to the target audience

2010-08-02 Thread William Stein
>> sage: matrix(2, [1,2,  3,4]) >> [1 2] >> [3 4] >> >> I don't like your suggestion to introduce something that isn't valid >> Python to enter matrices. > > Could you please clarify the policy to introduce unacceptable Python > syntax in the preparser? There is no policy. My personal policy is t

Re: [sage-devel] ATLAS build time 32-bit vs 64-bit

2010-08-02 Thread William Stein
On Mon, Aug 2, 2010 at 2:58 PM, Dr. David Kirkby wrote: > When I build ATLAS on my OpenSolaris box with SAGE64=yes, it takes about 5 > minutes to build as a 64-bit library. I can live with that. > > Building ATLAS as a 32-bit binary (i.e. SAGE64 is not set), on the same > hardware, seems to be tak

[sage-devel] Re: Some feature requests on SAGE - Adding Engineering to the target audience

2010-08-02 Thread cousteau
1. ENGINEERING MODE Ok, I didn't think about the problems that using real numbers where indexes are required would cause. Doesn't look easy to workaround, so better forget about this one. 2. UNITS Good to know that Sage already supports units, when were they implemented? Apparently not in 4.1.2 at

Re: [sage-devel] ALGLIB spkg is released (second version)

2010-08-02 Thread Carl Witty
On Wed, Jul 28, 2010 at 11:38 PM, Sergey Bochkanov wrote: >> My suggestion would be to support Sage vectors and matrices over >> GF(2), RDF, and CDF (machine floats and complex numbers), as well as >> numpy arrays and matrices of appropriate types. > > +1 > > My proposal is to make > * boolean vec

[sage-devel] Re: Some feature requests on SAGE - Adding Engineering to the target audience

2010-08-02 Thread kcrisman
On Aug 2, 7:59 pm, cousteau wrote: > 1. ENGINEERING MODE > Ok, I didn't think about the problems that using real numbers where > indexes are required would cause. Doesn't look easy to workaround, so > better forget about this one. > I also encourage the appending of a . syntax. But we've defin

Re: [sage-devel] Re: Some feature requests on SAGE - Adding Engineering to the target audience

2010-08-02 Thread William Stein
On Mon, Aug 2, 2010 at 4:59 PM, cousteau wrote: > 1. ENGINEERING MODE > Ok, I didn't think about the problems that using real numbers where > indexes are required would cause. Doesn't look easy to workaround, so > better forget about this one. > > 2. UNITS > Good to know that Sage already supports

Re: [sage-devel] Re: Some feature requests on SAGE - Adding Engineering to the target audience

2010-08-02 Thread William Stein
On Mon, Aug 2, 2010 at 6:40 PM, kcrisman wrote: > Finally, having multiple interfaces to Sage would be a great thing! > The notebook is great for many educational and research purposes, the > command line for others, and why not one for engineering/programming? > Are there any IDE candidates which

[sage-devel] Zumkeller Numbers

2010-08-02 Thread mda_
I wrote the following zumkeller number verification function today, if anyone's interested. I verified its correctness for the first 10,000 terms (from the OEIS site) in the domain: 1 < n < 43465. Computation for that range took 1 hour, 26 minutes, 5.17 seconds =) Is it fast or slow? def is_zk(

Re: [sage-devel] ALGLIB spkg is released (second version)

2010-08-02 Thread Carl Witty
On Wed, Jul 28, 2010 at 11:38 PM, Sergey Bochkanov wrote: > My proposal is to make > * boolean vector/matrix = GF(2), RDF (non-zero = True) > * integer vector/matrix = RDF > * real = RDF > * complex = CDF I've attached a patch to make alglib allow input in the following formats: * boolean vector/

Re: [sage-devel] Zumkeller Numbers

2010-08-02 Thread Dan Drake
On Mon, 02 Aug 2010 at 07:12PM -0700, mda_ wrote: > I wrote the following zumkeller number verification function today, if > anyone's interested. I verified its correctness for the first 10,000 > terms (from the OEIS site) in the domain: 1 < n < 43465. Computation > for that range took 1 hour, 26

[sage-devel] Re: Zumkeller Numbers

2010-08-02 Thread mda_
> Calling sigma() involves a call to factor(), so you are basically > factoring your input *twice* every time (I think; someone should correct > me if I'm wrong) -- bad idea! I would move the "d > = divisors(a)" to the top, and then do > >     sa = sum(d) You're right, I made that same optimizatio

[sage-devel] Re: Zumkeller Numbers

2010-08-02 Thread mda_
Also I forgot to parallelize it. It currently only runs on one core. I have two on this laptop. =) -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group

[sage-devel] Re: Some feature requests on SAGE - Adding Engineering to the target audience

2010-08-02 Thread Jason Grout
On 8/2/10 6:40 PM, kcrisman wrote: On Aug 2, 7:59 pm, cousteau wrote: 3. BODE DIAGRAMS Well, ok, maybe when I tried to plot a bode diagram I didn't research much on the graphics array point, but there's still missing a way to make the X axis have a logarithmic scale (without replacing x wit

[sage-devel] Re: Some feature requests on SAGE - Adding Engineering to the target audience

2010-08-02 Thread Jason Grout
On 8/2/10 4:59 PM, cousteau wrote: 3. BODE DIAGRAMS Well, ok, maybe when I tried to plot a bode diagram I didn't research much on the graphics array point, but there's still missing a way to graphics array doesn't line up the scales with each other (if that's needed). However, that is very e

[sage-devel] Ticket #1396 Fixed but backed out.

2010-08-02 Thread Dr. David Kirkby
#1396 is marked as fixed, but the release manager has backed it out as it caused problems. Dan wrote: "We don't have an "unmerged in:" field, but this patch is getting "unmerged" in 4.5.2.alpha1." But given it was unmerged, should this not be be set to "needs work", rather than fixed? It's

[sage-devel] Re: Cloning is frustratingly slow

2010-08-02 Thread Rob Beezer
I just built a clone in about a minute. On a fresh install of 4.5.2.rc0 created from source. Maybe with a binary install, the docs need to be built on the first clone? Maybe a second clone would happen without the documentation being built? For the uninitiated or timid, (a) making a clone fol