[sage-devel] Re: Set reorders elements

2009-11-08 Thread Florent Hivert
Hi there, > And another example, where I (would like to) follow the example of the > constructor for multivariate polynomials: > > sage: FreeGroup('x', 10) > Expected: > Free Group on the Set {x0, x1, x2, x3, x4, x5, x6, x7, x8, x9} > Got: > Free Group on the Set {x8, x9, x2, x

[sage-devel] Re: Set reorders elements

2009-11-08 Thread Florent Hivert
Hi Alex, By the way, I think this is a good moment to advertise for a very good idea Nicolas had a few years ago, that is to implement and use the very common and basic notion of family: A Family is an associative container which models a family `(f_i)_{i in I}`. Then, f[i]

[sage-devel] Re: Set reorders elements

2009-11-08 Thread javier
Hi there, On Nov 8, 9:36 am, Florent Hivert wrote: > There are some design questions which prevented me to do it at first. Let's > start with the simple one: > >  - on mathematical sets we have the notion of intersection, union, symmetric > difference. When dealing with EnumeratedSets, does some

[sage-devel] Re: Set reorders elements

2009-11-08 Thread Gonzalo Tornaria
On Sun, Nov 8, 2009 at 2:29 AM, Alex Ghitza wrote: > > > This is a bit disconcerting: > > sage: Set(['a', 'b', 'c']) > {'a', 'c', 'b'} I am surprised by the following: sage: s = set(['a', 'b', 'c']) sage: repr(s) "set(['a', 'c', 'b'])" sage: str(s) "set(['a', 'c', 'b'])" s

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

2009-11-08 Thread Gonzalo Tornaria
On Sat, Nov 7, 2009 at 11:00 PM, Dr. David Kirkby wrote: > But how did you find out these two were hard links? I'm not aware of any way > to > find if A is a hard link of B, unless one finds the inodes and compares them, > which would be next to impossible where there are a lot of files. I assum

[sage-devel] where can i find history of simplify_trig

2009-11-08 Thread ma...@mendelu.cz
Dear developers, I looked into sage/symbolics/expressions.pyx and the definition of simplify_trig(). This funciton applies trigsimp and trigexpand from Maxima and as a result, sage: (tan(3*x)).simplify_full() gives terrible result (4*cos(x)^2 - 1)*sin(x)/(4*cos(x)^3 - 3*cos(x)) Despite the fact

[sage-devel] Re: Set reorders elements

2009-11-08 Thread Carlo Hamalainen
On Sun, Nov 8, 2009 at 2:01 PM, Gonzalo Tornaria wrote: > This doesn't happen in "sage -python", but it does happen in "sage > -ipython", so I guess is ipython related. However, both versions seem > to be using ipython 9.1... This is the pprint (pretty print) module. From ipython's man page: -[

[sage-devel] plot scale sometimes shows none or only one number

2009-11-08 Thread Henryk Trappmann
Did anyone notice that the plot scale sometimes does not contain any number or sometimes only contains one number? Unfortunately I have no simple example to reproduce. But its not a problem with too small or too big numbers. I think the plot function should guaranty that at least two numbers are

[sage-devel] Re: cython mode bug?

2009-11-08 Thread mhampton
OK, I've made this ticket #7413: http://trac.sagemath.org/sage_trac/ticket/7413. -Marshall On Nov 7, 11:22 pm, Robert Bradshaw wrote: > 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 g

[sage-devel] Re: Set reorders elements

2009-11-08 Thread Florent Hivert
Hi > I think the design problem comes from the fact the "category of > enumerated sets" is not real "category" from the mathematical point of > view, although you can embed it inside the category of totally ordered > sets with the "enumeration order", that point of view might solve some > o

[sage-devel] Re: PPA for Sage in Ubuntu

2009-11-08 Thread Maurizio
Hi, let me give a quick reference for starting with ppa: http://blog.bodhizazen.net/linux/launchpad-ppa-tips/ regards Maurizio On Oct 24, 5:30 pm, Jason Grout wrote: > The IRC logs show a recent conversation (again) about Sage packaging for > Ubuntu.  We all know it would be a massive amount

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

2009-11-08 Thread Gonzalo Tornaria
On Sat, Nov 7, 2009 at 11:00 PM, Dr. David Kirkby wrote: > Gonzalo Tornaria wrote: >> Is it really necessary for sage-bdist to preserve hardlinks? >> >> [ ... checking a bdist tarball of 4.1.1 ... ] >> >> there is exactly one hardlink in this bdist tarball: >> "local/bin/python" is a hardlink to

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

2009-11-08 Thread David Kirkby
2009/11/8 Gonzalo Tornaria : > > On Sat, Nov 7, 2009 at 11:00 PM, Dr. David Kirkby > wrote: >> But how did you find out these two were hard links? I'm not aware of any way >> to >> find if A is a hard link of B, unless one finds the inodes and compares them, >> which would be next to impossible

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

2009-11-08 Thread Gonzalo Tornaria
On Sun, Nov 8, 2009 at 9:31 PM, David Kirkby wrote: > Hopefully, -pR may work for any POSIX system if the reason for the > hard link is known. I can't see what creates that link myself. You > clearly have a much greater understanding of the issues than me. Just to clarify, the option "-pR" is no

[sage-devel] Why is "local/bin/python" a hardlink to "local/bin/python2.6".??

2009-11-08 Thread David Kirkby
If you look on the thread " Do we need "cp -a" - or would 'cp -pR' do ?" you may have noticed that Gonzalo Tornaria has discovered that "local/bin/python" is a hardlink to "local/bin/python2.6". From what I understand, this is the only hard link in Sage. It would be better if this could be repl

[sage-devel] Re: notebook help needed

2009-11-08 Thread Matt Rissler
On Oct 14, 11:03 am, William Stein wrote: > On Wed, Oct 14, 2009 at 4:55 AM, Thierry Dumont > > > > > > wrote: > > William Stein a écrit : > >> Hi, > > >> Nearly two weeks ago I had the notebook stabilized and all known new > >> bugs fixed (after separating it off from sage as a separate progr

[sage-devel] Re: Why is "local/bin/python" a hardlink to "local/bin/python2.6".??

2009-11-08 Thread Gonzalo Tornaria
David, On Sun, Nov 8, 2009 at 10:15 PM, David Kirkby wrote: > > If you look on the thread > > " Do we need "cp -a" - or would 'cp -pR' do ?" > > you may have noticed that Gonzalo Tornaria  has discovered that > "local/bin/python" is a hardlink to "local/bin/python2.6". From what I > understand,

[sage-devel] Re: Why is "local/bin/python" a hardlink to "local/bin/python2.6".??

2009-11-08 Thread David Kirkby
2009/11/9 Gonzalo Tornaria : > > David, > > On Sun, Nov 8, 2009 at 10:15 PM, David Kirkby wrote: >> >> If you look on the thread >> >> " Do we need "cp -a" - or would 'cp -pR' do ?" >> >> you may have noticed that Gonzalo Tornaria  has discovered that >> "local/bin/python" is a hardlink to "local

[sage-devel] Re: notebook help needed

2009-11-08 Thread William Stein
> I'm not sure why, but the storage abstraction broke my multiple boxes > acting as compute nodes via NFS and server_pool.  If I run the > notebook with a localhost login server_pool=['sa...@localhost'], then > it works.  If I don't, server_pool=['sa...@node1'], then it appears > that the server o

[sage-devel] Re: cython mode bug?

2009-11-08 Thread William Stein
On Sun, Nov 8, 2009 at 12:17 PM, mhampton wrote: > > OK, I've made this ticket #7413: > http://trac.sagemath.org/sage_trac/ticket/7413. > > -Marshall I've closed this as a dupe of #5324, and added a remark that any percent mode causes problems: http://trac.sagemath.org/sage_trac/ticket/5324 I

[sage-devel] Re: cython mode bug?

2009-11-08 Thread William Stein
On Sun, Nov 8, 2009 at 6:04 PM, William Stein wrote: > On Sun, Nov 8, 2009 at 12:17 PM, mhampton wrote: >> >> OK, I've made this ticket #7413: >> http://trac.sagemath.org/sage_trac/ticket/7413. >> >> -Marshall > > I've closed this as a dupe of #5324, and added a remark that any > percent mode c

[sage-devel] Re: cython mode bug?

2009-11-08 Thread mhampton
OK, sorry about that dupe. I've checked out your patch and given it a positive review. -Marshall On Nov 8, 8:14 pm, William Stein wrote: > > I'm maybe going to fix this right now. > > OK, patch up -- somebody should review it (it's quite short). > > -- William --~--~-~--~~

[sage-devel] Re: notebook help needed

2009-11-08 Thread Thierry Dumont
William Stein a écrit : >> I'm not sure why, but the storage abstraction broke my multiple boxes >> acting as compute nodes via NFS and server_pool. If I run the >> notebook with a localhost login server_pool=['sa...@localhost'], then >> it works. If I don't, server_pool=['sa...@node1'], then it

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

2009-11-08 Thread David Kirkby
2009/11/7 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 t