[sage-devel] Re: Set reorders elements

2009-11-07 Thread Nick Alexander
> sage: G. = FreeGroup() > sage: G > Free Group on the Set {a, c, b} > sage: b > c > > This is probably due more to crappy programming on my part rather than > the Set issue, but the latter did confuse me. I think this is due to a poor definition: the decision was made that variables are named

[sage-devel] Re: Set reorders elements

2009-11-07 Thread William Stein
On Sat, Nov 7, 2009 at 8:29 PM, Alex Ghitza wrote: > > > This is a bit disconcerting: > > sage: Set(['a', 'b', 'c']) > {'a', 'c', 'b'} > sage: Set(['a', 'b', 'c', 'd']) > {'a', 'c', 'b', 'd'} > sage: Set(['a', 'b', 'c', 'd', 'e']) > {'a', 'c', 'b', 'e', 'd'} > > Bug?  It doesn't seem to happen wi

[sage-devel] Set reorders elements

2009-11-07 Thread Alex Ghitza
On Sun, Nov 08, 2009 at 04:06:01PM +1100, Alex Ghitza wrote: > > In fact, the reason this is bothering me right now is that I'm writing > code for working with free groups on sets, and I end up with something > like > > sage: G. = FreeGroup() > sage: G > Free Group on the Set {a, c, b} > sage: b

[sage-devel] Re: cython mode bug?

2009-11-07 Thread Robert Bradshaw
On Nov 7, 2009, at 5:57 PM, mhampton wrote: > Someone reading a tutorial I wrote on cython was quite confused > because the header "%cython " in a cell gives a confusing error, and > needs to be "%cython". It seems to me that the extra whitespace > should not cause such problems, and this is a b

[sage-devel] Re: Set reorders elements

2009-11-07 Thread Alex Ghitza
On Sat, Nov 07, 2009 at 08:44:11PM -0800, Nick Alexander wrote: > > > Sets are unordered. Why does the display order changing worry you? > Of course they are. So mathematically speaking everything is fine. However, unless there's a good reason for Set(['a', 'b', 'c']) to result in {'a', 'c',

[sage-devel] Re: Set reorders elements

2009-11-07 Thread Nick Alexander
On 7-Nov-09, at 8:29 PM, Alex Ghitza wrote: > > > This is a bit disconcerting: > > sage: Set(['a', 'b', 'c']) > {'a', 'c', 'b'} > sage: Set(['a', 'b', 'c', 'd']) > {'a', 'c', 'b', 'd'} > sage: Set(['a', 'b', 'c', 'd', 'e']) > {'a', 'c', 'b', 'e', 'd'} > > Bug? It doesn't seem to happen with lis

[sage-devel] Set reorders elements

2009-11-07 Thread Alex Ghitza
This is a bit disconcerting: sage: Set(['a', 'b', 'c']) {'a', 'c', 'b'} sage: Set(['a', 'b', 'c', 'd']) {'a', 'c', 'b', 'd'} sage: Set(['a', 'b', 'c', 'd', 'e']) {'a', 'c', 'b', 'e', 'd'} Bug? It doesn't seem to happen with lists of numbers. Best, Alex -- Alex Ghitza -- Lecturer in Mathem

[sage-devel] cython mode bug?

2009-11-07 Thread mhampton
Someone reading a tutorial I wrote on cython was quite confused because the header "%cython " in a cell gives a confusing error, and needs to be "%cython". It seems to me that the extra whitespace should not cause such problems, and this is a bug. Anyone disagree? -Marshall --~--~-~--~-

[sage-devel] Re: Do we need "cp -a" - or would 'cp -pR' do ?

2009-11-07 Thread Dr. David Kirkby
Gonzalo Tornaria wrote: > On Sat, Nov 7, 2009 at 6:48 AM, Dr. David Kirkby > wrote: >> "cp -L$OPT devel/sage-main "$TMP"/devel/sage-main" > > Maybe this is done to handle the case where "sage-main" is a symlink > to an actual directory. The option -L means to copy symlinks as real > files. Other

[sage-devel] Automatic Uploading/Opening files with Sage.app

2009-11-07 Thread Ivan Andrus
I think I sent this from the wrong email address last time, since I don't see it on google groups. If you already got this I apologize. In the past there was discussion about "automatic uploading" of sws files and such on local servers so that double clicking an sws file would do the right

[sage-devel] problems building sage 4.2

2009-11-07 Thread Pablo De Napoli
Building sage-4.2 on my Ubuntu machine failed (64 bits amd, Karmic Koala) when building gnutls host system uname -a: Linux ubuntu 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 x86_64 GNU/Linux ***

[sage-devel] Re: Polynomial interpolation....

2009-11-07 Thread Martin Rubey
Nathann Cohen writes: > Hello everybody !!! > > I recently asked a question here : I have a set of points in R^n (or > C^n, or any vectorial space for the matter..), to which is associated > a set of values. Said differently, I have a function whose values I > only know at several points. I then

[sage-devel] Polynomial interpolation....

2009-11-07 Thread Nathann Cohen
Hello everybody !!! I recently asked a question here : I have a set of points in R^n (or C^n, or any vectorial space for the matter..), to which is associated a set of values. Said differently, I have a function whose values I only know at several points. I then would like, given a degree d, to f

[sage-devel] Re: Do we need "cp -a" - or would 'cp -pR' do ?

2009-11-07 Thread Gonzalo Tornaria
On Sat, Nov 7, 2009 at 6:48 AM, Dr. David Kirkby wrote: > "cp -L$OPT devel/sage-main "$TMP"/devel/sage-main" Maybe this is done to handle the case where "sage-main" is a symlink to an actual directory. The option -L means to copy symlinks as real files. Otherwise, the symlink may be copied (when

[sage-devel] Re: Do we need "cp -a" - or would 'cp -pR' do ?

2009-11-07 Thread MaxTheMouse
> > Do we know why the '-L' option is used once? > > "cp -L$OPT devel/sage-main "$TMP"/devel/sage-main" > > I read the POSIX standard, and although this is a required option, I can't > really work out exactly what the option is supposed to do. To quote from the > 2004 standard: > > --

[sage-devel] Re: Notebook not working properly on Solaris 10.

2009-11-07 Thread Willem Jan Palenstijn
On Sat, Nov 07, 2009 at 11:02:07AM +, Dr. David Kirkby wrote: > > I built Sage 4.2 on Solaris 10 on a Sun Netra T1 running the first release of > Solaris 10. > > Whilst computing things like 1+1 work fine in command line mode, they do not > work in the notebook. The input is accepted in th

[sage-devel] Notebook not working properly on Solaris 10.

2009-11-07 Thread Dr. David Kirkby
I built Sage 4.2 on Solaris 10 on a Sun Netra T1 running the first release of Solaris 10. Whilst computing things like 1+1 work fine in command line mode, they do not work in the notebook. The input is accepted in the notebook, but no output is ever displayed. See screenshot (sorry, I should

[sage-devel] Re: error compiling sage-4.2 from source

2009-11-07 Thread Georg S. Weber
> Yes, definitely.  The preqreq script would be changed to require > gfortran on *all* platforms except OS X, since Fortran isn't included > in Xcode so is a pain to require there. > > William Hi William, I just skipped over the Mac OS X "tools" page from the R project: http://r.research.att.co

[sage-devel] Automatic Uploading/Opening files with Sage.app

2009-11-07 Thread Ivan Andrus
In the past there was discussion about "automatic uploading" of sws files and such on local servers so that double clicking an sws file would do the right thing. See for example here: http://www.mail-archive.com/sage-devel@googlegroups.com/msg19059.html which for some reason has all the mes

[sage-devel] Do we need "cp -a" - or would 'cp -pR' do ?

2009-11-07 Thread Dr. David Kirkby
In my recent attempt to create a binary distribution for Solaris (see thread "What directories should go into a binary distribution?"), failed as the '-a' option was used to the 'cp' command in SAGE_ROOT/local/bin/sage-bdist. See trac http://trac.sagemath.org/sage_trac/ticket/7407 A look at

[sage-devel] Re: Implementing the tropical semiring

2009-11-07 Thread Nicolas M. Thiery
On Fri, Nov 06, 2009 at 12:52:09PM -0800, luisfe wrote: > Quite a long time ago, somebody posted this > > Mon, 02 Jul 2007 10:36:10 -0700 > > > > I am in need of free software that will work with polynomials over the > > Tropical semiring. I was unable to find anything suitable, so I > > thought