[sage-devel] Website Feature Request: Public Examples Webpage / Workbook

2010-11-11 Thread Chris Swierczewski
A nifty service provided by some of the Ma* folks are webspaces where users could upload some powerful research-level. For example: * Mathematica: http://library.wolfram.com/ * Matlab: http://www.mathworks.com/matlabcentral/fileexchange/ * Maple: http://www.maplesoft.com/support/help/Maple/view.a

Re: [sage-devel] Re: Sylvester matrix

2010-11-11 Thread Tom Boothby
> However I disagree a little here about the degree of zero polynomial. > I would expect SylvesterMatrix(x^2, 0) > > To be > > [0 0] > [0 0] Why do you expect that? What definition are you using for the Sylvester Matrix? -- To post to this group, send an email to sage-devel@googlegroups.com To

[sage-devel] Re: Base Conversion

2010-11-11 Thread Nick Alexander
On Nov 11, 11:39 am, Eviatar wrote: > Yes, but can you go directly from base 2 to base 4, for example? I > guess this would work, ZZ(23,base=2).str(base=4), but it's not very > convenient. sage: ZZ([1, 2], base=3) 7 sage: ZZ([1, 2], base=3).digits(2) [1, 1, 1] My opinion is that this is short

[sage-devel] Re: Base Conversion

2010-11-11 Thread Eviatar
Yes, but can you go directly from base 2 to base 4, for example? I guess this would work, ZZ(23,base=2).str(base=4), but it's not very convenient. -- 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...@google

[sage-devel] Re: Policy on license conditions for new packages?

2010-11-11 Thread Dima Pasechnik
On Nov 12, 2:00 am, Jeroen Demeyer wrote: > On 2010-11-11 18:43, Dima Pasechnik wrote: > > > No. GPLv2+ - compatibility is a weaker requirement than the GPLv2 - > > compatibility. > > Just as x>=2 is weaker than x=2. > > Probably we are using the word "compatibility" in a different way. > Essent

Re: [sage-devel] Re: Policy on license conditions for new packages?

2010-11-11 Thread Jeroen Demeyer
On 2010-11-11 18:43, Dima Pasechnik wrote: > No. GPLv2+ - compatibility is a weaker requirement than the GPLv2 - > compatibility. > Just as x>=2 is weaker than x=2. Probably we are using the word "compatibility" in a different way. Essentially what I wanted to say is the following: If Sage claims

[sage-devel] Re: Sylvester matrix

2010-11-11 Thread luisfe
On Nov 11, 6:52 pm, Tom Boothby wrote: > The empty matrix is NOT the Sylvester matrix of (0,0), (0,1) or (1,0). > > The degree of the zero polynomial is usually taken to be -infinity, > though Sage uses -1 for some reason. In either case, the Sylvester > matrix needs to have negative dimensions

Re: [sage-devel] Sylvester matrix

2010-11-11 Thread Tom Boothby
The empty matrix is NOT the Sylvester matrix of (0,0), (0,1) or (1,0). The degree of the zero polynomial is usually taken to be -infinity, though Sage uses -1 for some reason. In either case, the Sylvester matrix needs to have negative dimensions. That is to say, return a ValueError in these cas

[sage-devel] Re: Policy on license conditions for new packages?

2010-11-11 Thread Dima Pasechnik
On Nov 12, 12:27 am, Jeroen Demeyer wrote: > On 2010-11-11 17:21, Dima Pasechnik wrote: > > > On Nov 11, 7:20 pm, Jeroen Demeyer wrote: > >> On 2010-11-11 11:53, Dr. David Kirkby wrote: > > >>> The license must be a GPL version v2+ compatible license. > > >> Note that GPLv3 is NOT compaible wit

[sage-devel] Sylvester matrix

2010-11-11 Thread luisfe
Hi, I am trying to write a procedure for univariate and multivariate polynomial rings that computes the Sylvester matrix of two polynomials. But I have a problem with corner cases. I am not sure what the method should resurn in the cases poly1, poly2 = 0, 1 poly1, poly2 = 1, 0 poly1, poly2 = 0,

[sage-devel] Re: experiment with a new version of the SageTeX package

2010-11-11 Thread Andrey Novoseltsev
I was playing with sageexample environment, didn't quite like what I was getting (compared to what I planned), and while I was figuring out a way to suggest a new environment, I found out that Volker has already timely produced sagecommandline, which made me very happy. However, after seeing what

[sage-devel] Re: Base Conversion

2010-11-11 Thread Nick Alexander
On Nov 11, 10:13 am, Eviatar wrote: > Thank you, > > I wasn't aware of that functionality. However, I think my function is > more convenient since you can directly convert bases, instead of using > base 10 as an intermediary step. sage: ZZ(15).digits(2) [1, 1, 1, 1] sage: ZZ(15).digits(3) [0, 2

[sage-devel] Re: Can someone test this in alpha versions of 4.6?

2010-11-11 Thread Jason Grout
On 11/11/10 10:32 AM, John H Palmieri wrote: On Nov 11, 8:20 am, Jason Grout wrote: One of my interacts for class is segfaulting in 4.6, but worked fine in 4.5.2. The problem is illustrated below: sage: V=(QQ^2).span_of_basis([[1,1]]) sage: v=V([1,1]) sage: x=sqrt(2)*v sage: 3*x

[sage-devel] Re: Base Conversion

2010-11-11 Thread Eviatar
Thank you, I wasn't aware of that functionality. However, I think my function is more convenient since you can directly convert bases, instead of using base 10 as an intermediary step. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an

Re: [sage-devel] Re: Policy on license conditions for new packages?

2010-11-11 Thread Mike Hansen
On Thu, Nov 11, 2010 at 6:37 AM, Dr. David Kirkby wrote: > On 11/11/10 01:32 PM, Jason Grout wrote: > > >> As I understand it, currently, the whole Sage distribution is >> effectively GPLv3+, since it combines GPLv2+ and GPLv3+ code, so it is >> at least GPLv3. My understanding is that we currentl

Re: [sage-devel] Re: Policy on license conditions for new packages?

2010-11-11 Thread Dr. David Kirkby
On 11/11/10 04:27 PM, Jeroen Demeyer wrote: That's even worse in terms of compatibility (because then the licence must be compatible with GPLv2 and also with future versions of the GPL). So if code is not compatible with GPLv2, it certainly will not be compatible with GPLv2+. This in fact rai

[sage-devel] Re: Policy on license conditions for new packages?

2010-11-11 Thread kcrisman
On Nov 11, 11:27 am, Jeroen Demeyer wrote: > On 2010-11-11 17:21, Dima Pasechnik wrote: > > > On Nov 11, 7:20 pm, Jeroen Demeyer wrote: > >> On 2010-11-11 11:53, Dr. David Kirkby wrote: > > >>> The license must be a GPL version v2+ compatible license. > > >> Note that GPLv3 is NOT compaible wit

[sage-devel] Re: Can someone test this in alpha versions of 4.6?

2010-11-11 Thread John H Palmieri
On Nov 11, 8:20 am, Jason Grout wrote: > One of my interacts for class is segfaulting in 4.6, but worked fine in > 4.5.2.  The problem is illustrated below: > > sage: V=(QQ^2).span_of_basis([[1,1]]) > sage: v=V([1,1]) > sage: x=sqrt(2)*v > sage: 3*x > >

Re: [sage-devel] Re: Policy on license conditions for new packages?

2010-11-11 Thread Jeroen Demeyer
On 2010-11-11 17:21, Dima Pasechnik wrote: > On Nov 11, 7:20 pm, Jeroen Demeyer wrote: >> On 2010-11-11 11:53, Dr. David Kirkby wrote: >> >>> The license must be a GPL version v2+ compatible license. >> >> Note that GPLv3 is NOT compaible with GPLv2! I quote >> fromhttp://www.gnu.org/licenses/li

[sage-devel] Re: libatlas and libcblas on MacOSX Intel? os.uname() ?

2010-11-11 Thread kcrisman
> import os > os.uname()[4] > > 'Power Macintosh' > os.uname()[0] > > 'Darwin' > > > What is it on Intel? On 10.4 PPC? > Same on 10.4 PPC. -- 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.

[sage-devel] Re: Policy on license conditions for new packages?

2010-11-11 Thread Dima Pasechnik
On Nov 11, 7:20 pm, Jeroen Demeyer wrote: > On 2010-11-11 11:53, Dr. David Kirkby wrote: > > > The license must be a GPL version v2+ compatible license. > > Note that GPLv3 is NOT compaible with GPLv2!  I quote > fromhttp://www.gnu.org/licenses/license-list.html#GNUGPL but we talk about GPLv2+

[sage-devel] Can someone test this in alpha versions of 4.6?

2010-11-11 Thread Jason Grout
One of my interacts for class is segfaulting in 4.6, but worked fine in 4.5.2. The problem is illustrated below: sage: V=(QQ^2).span_of_basis([[1,1]]) sage: v=V([1,1]) sage: x=sqrt(2)*v sage: 3*x Unhandled SIGSEGV: A segmentation fa

Re: [sage-devel] libatlas and libcblas on MacOSX Intel? os.uname() ?

2010-11-11 Thread Dr. David Kirkby
On 11/11/10 03:49 PM, Dima Pasechnik wrote: Could anyone tell me whether we build libatlas and libcblas on MacOSX Intel (and place them in SAGE_LOCAL/lib)? I know this is not the case on PPC. ATLAS, it is not built on OS X at all. There's a really small python script (spkg-install) which calls

[sage-devel] Does ECL need readline or termcap ?

2010-11-11 Thread Dr. David Kirkby
I was just looking at a file in Sage, which lists the dependencies for ECL:. It has: $(INST)/$(ECL): $(BASE) $(INST)/$(MPIR) $(INST)/$(TERMCAP) \ $(INST)/$(READLINE) $(INST)/$(BOEHM_GC) which means ECL does not start building until after both readline and termcap are built. Is

[sage-devel] libatlas and libcblas on MacOSX Intel? os.uname() ?

2010-11-11 Thread Dima Pasechnik
Could anyone tell me whether we build libatlas and libcblas on MacOSX Intel (and place them in SAGE_LOCAL/lib)? I know this is not the case on PPC. I am working on setup.py for CVXOPT that might be dependent upon this. I would also appreciate knowing how to dig up the hardware version. On my MacO

Re: [sage-devel] Re: Policy on license conditions for new packages?

2010-11-11 Thread Dr. David Kirkby
On 11/11/10 01:32 PM, Jason Grout wrote: As I understand it, currently, the whole Sage distribution is effectively GPLv3+, since it combines GPLv2+ and GPLv3+ code, so it is at least GPLv3. My understanding is that we currently can't include GPL2 (not +) code. However, if someone wanted to take

Re: [sage-devel] Re: t2.math is working again

2010-11-11 Thread Dr. David Kirkby
On 11/11/10 01:41 PM, Dima Pasechnik wrote: Dave, can you get us curl or wget on t2? hg can wait, as you can just install sage system-wide and make hg an alias to "sage -hg" Thanks, Dima wget is in /usr/sfw/bin, and that should be in your path if you add if [ `uname -n` = t2 ] ; then . /

[sage-devel] Re: t2.math is working again

2010-11-11 Thread Dima Pasechnik
Dave, can you get us curl or wget on t2? hg can wait, as you can just install sage system-wide and make hg an alias to "sage -hg" Thanks, Dima On Nov 11, 9:13 pm, "Dr. David Kirkby" wrote: > On 11/11/10 12:54 PM, Simon King wrote: > > > > > > > Hi David, > > > On 11 Nov., 12:24, "Dr. David Kirk

[sage-devel] Re: t2.math is working again

2010-11-11 Thread Simon King
Hi David, On 11 Nov., 14:13, "Dr. David Kirkby" wrote: > It seems that bash is reading .bashrc and not .profile, as you have a .bashrc > file. I just appended > > if [ `uname -n` = t2 ] ; then >      . /usr/local/bin/t2-setup > fi > > to the end of your .bashrc file, and it then sets your PATH co

[sage-devel] Re: Policy on license conditions for new packages?

2010-11-11 Thread Jason Grout
On 11/11/10 6:44 AM, Dr. David Kirkby wrote: On 11/11/10 12:07 PM, Jeroen Demeyer wrote: On 2010-11-11 12:42, Dr. David Kirkby wrote: My interpretation of that is if: * Says GPL 2 then's it incompatible. But if I suppose you mean "if it says GPL 3 it is incompatible" (which the GLPK and the

Re: [sage-devel] Re: t2.math is working again

2010-11-11 Thread Dr. David Kirkby
On 11/11/10 12:54 PM, Simon King wrote: Hi David, On 11 Nov., 12:24, "Dr. David Kirkby" wrote: I've now set up t2.math so it is able to build Sage again. The software I've added includes * gcc 4.5.1 * emacs 23.2 * vim 7.3 (vi clone, but handles big files better than vi) * screen 4

[sage-devel] Re: t2.math is working again

2010-11-11 Thread Simon King
Hi David, On 11 Nov., 12:24, "Dr. David Kirkby" wrote: > I've now set up t2.math so it is able to build Sage again. The software I've > added includes > >   * gcc 4.5.1 >   * emacs 23.2 >   * vim 7.3 (vi clone, but handles big files better than vi) >   * screen 4.00.03 > > Please add something li

Re: [sage-devel] Policy on license conditions for new packages?

2010-11-11 Thread Dr. David Kirkby
On 11/11/10 12:07 PM, Jeroen Demeyer wrote: On 2010-11-11 12:42, Dr. David Kirkby wrote: My interpretation of that is if: * Says GPL 2 then's it incompatible. But if I suppose you mean "if it says GPL 3 it is incompatible" (which the GLPK and the new CVXOPT package says) No, I don't mean th

Re: [sage-devel] Policy on license conditions for new packages?

2010-11-11 Thread Jeroen Demeyer
On 2010-11-11 12:42, Dr. David Kirkby wrote: > My interpretation of that is if: > > * Says GPL 2 > > then's it incompatible. But if I suppose you mean "if it says GPL 3 it is incompatible" (which the GLPK and the new CVXOPT package says) > This really is a minefield. Unfortunately it is... Jer

Re: [sage-devel] Policy on license conditions for new packages?

2010-11-11 Thread Dr. David Kirkby
On 11/11/10 11:20 AM, Jeroen Demeyer wrote: On 2010-11-11 11:53, Dr. David Kirkby wrote: The license must be a GPL version v2+ compatible license. Note that GPLv3 is NOT compaible with GPLv2! I quote from http://www.gnu.org/licenses/license-list.html#GNUGPL As I understand it, the bit of GP

[sage-devel] t2.math is working again

2010-11-11 Thread Dr. David Kirkby
Following the recent changes made to the server disk.math, the Solaris 10 machine t2.math was unable to build Sage, as it relied on some external NFS shares which are no longer exist. I've now set up t2.math so it is able to build Sage again. The software I've added includes * gcc 4.5.1 *

Re: [sage-devel] Policy on license conditions for new packages?

2010-11-11 Thread Jeroen Demeyer
On 2010-11-11 11:53, Dr. David Kirkby wrote: > The license must be a GPL version v2+ compatible license. Note that GPLv3 is NOT compaible with GPLv2! I quote from http://www.gnu.org/licenses/license-list.html#GNUGPL Please note that GPLv3 is not compatible with GPLv2 by itself. However, most sof

[sage-devel] Policy on license conditions for new packages?

2010-11-11 Thread Dr. David Kirkby
In the section of the Sage Developers guide http://www.sagemath.org/doc/developer/inclusion.html there is this one sentence. "License. The license must be a GPL version 2+ compatible license." Is that sufficient, or should that section be expanded? The question was raised by Dima on http://t

[sage-devel] Re: segfault when multiplying QQ constant and SR vector (with user basis)

2010-11-11 Thread Jason Grout
On 11/11/10 2:11 AM, Jason Grout wrote: If it helps, here is the backtrace using sage -gdb: http://sage.pastebin.com/w7sidQy4 (further details on trac #10250) Thanks, Jason -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email

[sage-devel] Re: segfault when multiplying QQ constant and SR vector (with user basis)

2010-11-11 Thread Jason Grout
If it helps, here is the backtrace using sage -gdb: http://sage.pastebin.com/w7sidQy4 Thanks, Jason -- 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

[sage-devel] segfault when multiplying QQ constant and SR vector (with user basis)

2010-11-11 Thread Jason Grout
This code worked in Sage 4.5.2. I just realized that it now gives a segfault in 4.6. Does anyone know what is going on? sage: A=matrix(QQ, [[2,1],[0,3]]) sage: eval, evecs,mult=A.eigenvectors_right()[0] sage: evec=evecs[0] sage: unitevec=evec/evec.norm() sage: unitevec (1/2*sqrt(2), 1/2*sqrt(