Re: [sage-devel] t2.math binaries don't seem to work

2010-06-15 Thread David Kirkby
On 15 June 2010 06:48, Dan Drake wrote: > Hello, > > I'm trying to test some patches and I want to try them on t2. I > downloaded a binary [1], untarred it, and started it -- and it failed: 1) Can you try this binary /usr/local/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v.tar.gz It is old, but

Re: [sage-devel] Re: Pynac - linking 64-bit objects to 32-bit libraries

2010-06-15 Thread David Kirkby
On 15 June 2010 01:03, Bill Hart wrote: > Why are they trying to link directly with the C++ standard library and > libgcc_s anyway. That looks wrong. The system is supposed to do that, > assuming you have the correct LD_LIBRARY_PATH. LD_LIBRARY_PATH includes: drkir...@hawk:~$ echo $LD_LIBRARY_PA

Re: [sage-devel] Should we block the use of CC and CXX except for developers?

2010-06-15 Thread David Kirkby
On 15 June 2010 02:41, Pablo De Napoli wrote: > I really think that spliting users into  "developers" and "non > developers" is very much against the spirit of open source I'm not sure if its against the spirit of open-source. Many of us use packages we do not develop - OpenOffice is one example

Re: [sage-devel] Category test suites

2010-06-15 Thread John Cremona
I sympathise with David. We want volunteers to grab a file with a low level of documentation and document it, which is already a lot of work. But now it seems that the poor volunteer is expected to rewrite all the code to fit into as well! Surely this is a different level of activity and shoul

[sage-devel] Re: pushing towards 90% doctest coverage for Sage 5.0

2010-06-15 Thread Simon King
Hi all! On Jun 12, 2:38 pm, John Cremona wrote: > Is there still a wiki page for people to sign up to deal with one or > more of these?  Or a standard for trac ticket titles to ensure that > effort is not duplicated? This would be good to have. For the record: I took care of sage.categories.hom

Re: [sage-devel] Re: Should we block the use of CC and CXX except for developers?

2010-06-15 Thread David Kirkby
On 15 June 2010 01:12, Bill Hart wrote: > Just a note: the standard gcc with Debian Lenny is gcc 4.3.2. This is > so buggy it fails to compile MPIR correctly. And yes, we've checked > that it is a gcc bug and it has been reported. > > It is fixed in a later gcc. But that means all Debian Lenny use

Re: [sage-devel] Re: Should we block the use of CC and CXX except for developers?

2010-06-15 Thread Minh Nguyen
Hi David, On Tue, Jun 15, 2010 at 6:08 PM, David Kirkby wrote: > Does this produce a broken version of MPIR or does it stop MPIR from > building? GCC 4.3.2 on Debian 5.0 produces a broken build of MPIR. At least MPIR 2.1.0 builds on that system with that version of GCC, but the MPIR checks fa

Re: [sage-devel] question about pattern matching in pynac

2010-06-15 Thread David Kirkby
On 15 June 2010 05:21, Tom Coates wrote: > > Dear sage-devel, > > I believe that the following: > > sage: gamma(x).full_simplify() > factorial(x - 1) > > is not correct, because in Sage factorial(x) is defined only if x is a > non-negative integer.  The problem arises because behind the scenes > f

[sage-devel] Re: mathematically correct eigen* methods of matrices.

2010-06-15 Thread mmarco
Reading again this discusion i have noticed that eigenspaces behaviour is not what i expected: sage: M=matrix(QQ,[[1,2],[3,4]]) sage: M.eigenspaces() [ (a0, Vector space of degree 2 and dimension 1 over Number Field in a0 with defining polynomial x^2 - 5*x - 2 User basis matrix: [ 1 1/3*

Re: [sage-devel] t2.math binaries don't seem to work

2010-06-15 Thread Dan Drake
On Tue, 15 Jun 2010 at 08:12AM +0100, David Kirkby wrote: > 2) Minh created that binary you have. I would hope that adding the > following to your LD_LIBRARY_PATH > > /usr/local/gcc-4.4.1-sun-linker/lib:/usr/local/gcc-4.4.1-sun-linker/lib/sparcv9:/usr/local/lib > > would allow that to work. With t

Re: [sage-devel] t2.math binaries don't seem to work

2010-06-15 Thread Dr. David Kirkby
On 06/15/10 09:36 AM, Dan Drake wrote: On Tue, 15 Jun 2010 at 08:12AM +0100, David Kirkby wrote: 2) Minh created that binary you have. I would hope that adding the following to your LD_LIBRARY_PATH /usr/local/gcc-4.4.1-sun-linker/lib:/usr/local/gcc-4.4.1-sun-linker/lib/sparcv9:/usr/local/lib

[sage-devel] Re: Category test suites

2010-06-15 Thread daveloeffler
On Jun 14, 11:46 pm, Florent Hivert wrote: > Hi, > > On Mon, Jun 14, 2010 at 03:13:53PM -0700, daveloeffler wrote: > > I've been doing some work adding doctests to some files that don't > > have them, and the coverage script kept telling me to put in a > > "TestSuite.run()" doctest. > > > Ca

[sage-devel] Re: Surprising code !!!

2010-06-15 Thread daveloeffler
On Jun 14, 11:25 pm, Jason Grout wrote: > So the doctests for that function are useless for testing that function, > obviously. I've wondered before if there's any way to make the test script check that a given function has actually been called. I've seen several errors similar to the above, w

Re: [sage-devel] Re: pushing towards 90% doctest coverage for Sage 5.0

2010-06-15 Thread Alex Ghitza
On Tue, 15 Jun 2010 01:02:56 -0700 (PDT), Simon King wrote: > On Jun 12, 2:38 pm, John Cremona wrote: > > Is there still a wiki page for people to sign up to deal with one or > > more of these?  Or a standard for trac ticket titles to ensure that > > effort is not duplicated? > > This would be

Re: [sage-devel] Re: Should we block the use of CC and CXX except for developers?

2010-06-15 Thread Dr. David Kirkby
On 06/15/10 09:13 AM, Minh Nguyen wrote: Hi David, On Tue, Jun 15, 2010 at 6:08 PM, David Kirkby wrote: Does this produce a broken version of MPIR or does it stop MPIR from building? GCC 4.3.2 on Debian 5.0 produces a broken build of MPIR. At least MPIR 2.1.0 builds on that system with th

Re: [sage-devel] Re: Surprising code !!!

2010-06-15 Thread William Stein
On Tue, Jun 15, 2010 at 2:09 AM, daveloeffler wrote: > > > On Jun 14, 11:25 pm, Jason Grout wrote: > >> So the doctests for that function are useless for testing that function, >> obviously. > > I've wondered before if there's any way to make the test script check > that a given function has actu

Re: [sage-devel] Category test suites

2010-06-15 Thread Nicolas M. Thiery
On Tue, Jun 15, 2010 at 08:52:04AM +0100, John Cremona wrote: > I sympathise with David. We want volunteers to grab a file with a > low level of documentation and document it, which is already a lot of > work. But now it seems that the poor volunteer is expected to rewrite > all the code to fit

[sage-devel] Re: pushing towards 90% doctest coverage for Sage 5.0

2010-06-15 Thread daveloeffler
(I'm working on a couple of tickets but I can't remember my Sage wiki account password -- can someone with admin rights reset it for me?) On Jun 15, 10:14 am, Alex Ghitza wrote: > On Tue, 15 Jun 2010 01:02:56 -0700 (PDT), Simon King > wrote: > > On Jun 12, 2:38 pm, John Cremona wrote: > > > Is

[sage-devel] inconsistent results for characteristic polynomial?

2010-06-15 Thread Minh Nguyen
Hi folks, In trying to improve the documentation and doctests of the database of common graphs [1], I come across what I think is rather inconsistent or perhaps wrong. First, I created the bull graph using the built-in graph generator. Then I computed the characteristic polynomial of the bull grap

[sage-devel] Re: inconsistent results for characteristic polynomial?

2010-06-15 Thread Chris Godsil
I'd say the characteristic polynomial is usually defined to be det( xI-M ); this is certainly the convention in graph theory. Chris On Jun 15, 7:21 am, Minh Nguyen wrote: > Hi folks, > > In trying to improve the documentation and doctests of the database of > common graphs [1], I come across wha

[sage-devel] Re: inconsistent results for characteristic polynomial?

2010-06-15 Thread Nathann Cohen
Hello !! As far as I know, and I do not know much about such aspects of Graph Theory, I would say that it makes no difference really... This polynomial is of interest for its roots (eigenvalues), which do not change when taking the opposite. By the way, the Mathematica page [1] gives an odd answer

[sage-devel] Re: inconsistent results for characteristic polynomial?

2010-06-15 Thread daveloeffler
I've never seen the char poly defined as anything other than det(x * Id - M). Wikipedia agrees, for instance, as does Lang's Algebra. David On Jun 15, 12:21 pm, Minh Nguyen wrote: > Hi folks, > > In trying to improve the documentation and doctests of the database of > common graphs [1], I come a

[sage-devel] Re: inconsistent results for characteristic polynomial?

2010-06-15 Thread Jason Grout
On 6/15/10 6:21 AM, Minh Nguyen wrote: As you can see, these two characteristic polynomials differ in only their signs. One can be obtained from the other by multiplying through by -1. What I would like to know is: Is there some reason for this inconsistency? Or are the two characteristic polyn

Re: [sage-devel] Re: inconsistent results for characteristic polynomial?

2010-06-15 Thread John Cremona
On 15 June 2010 13:25, Jason Grout wrote: > On 6/15/10 6:21 AM, Minh Nguyen wrote: > >> >> As you can see, these two characteristic polynomials differ in only >> their signs. One can be obtained from the other by multiplying through >> by -1. What I would like to know is: Is there some reason for

[sage-devel] Re: I think I've got a working version of the my enhancements to jmol in the notebook...

2010-06-15 Thread Jonathan
Dan, Thanks for the feedback. I'll take a look at it. I'm going to guess that the problem relates to the IcedTea package. Jmol only supports the official Sun Java. The fact that you could get Jmol to run using IcedTea is a major improvement. It didn't used to run at all. If you get a chance

Re: [sage-devel] Re: inconsistent results for characteristic polynomial?

2010-06-15 Thread Clement Pernet
As an undergrad in France, I learned the definition of charpoly as det ( M- xI ) and remember, that our professor mentionned the other convention as exotic. Since then, I've worked on compting the charpoly during my phd thesis and always chose to use the definition det (xI-M) which I found much

[sage-devel] Re: Relevant Sessions at upcoming Joint Meetings

2010-06-15 Thread kcrisman
On Jun 15, 9:30 am, mhampton wrote: > It looks like the cheapest booth we might qualify for (the "Special > Category") is $602.  To qualify, you have to have fewer than 6 > employees.  We definitely meet that requirement, since I think we have > 0 (at least full-time; maybe some positions at the

[sage-devel] Re: question about pattern matching in pynac

2010-06-15 Thread Tom Coates
As ddrake pointed out when reviewing Trac #9240, I had misunderstood the docstring of factorial() and so in Sage factorial(x) is in fact equal to gamma(x+1): sage: factorial(5) 120 sage: factorial(1/2) 1/2*sqrt(pi) sage: factorial(1/21) gamma(22/21) Is this supposed to be the case? If so then I

[sage-devel] (gap) interface and strings

2010-06-15 Thread Nicolas M. Thiery
Hi, I have a question about passing down strings to functions of other systems. For (a stupid) example, if I want to concatenate two strings in GAP, I need to do: sage: gap.Concatenation("\"foo\"", "\"bar\"") foobar Is there a reason that we can't just do the natural: sage:

Re: [sage-devel] Re: question about pattern matching in pynac

2010-06-15 Thread Florent Hivert
> As ddrake pointed out when reviewing Trac #9240, I had misunderstood > the docstring of factorial() and so in Sage factorial(x) is in fact > equal to gamma(x+1): > > sage: factorial(5) > 120 > sage: factorial(1/2) > 1/2*sqrt(pi) > sage: factorial(1/21) > gamma(22/21) > > Is this supposed to be

[sage-devel] Sage crossref...

2010-06-15 Thread Florent Hivert
Hi there, I'd like to have some crossref back and forth from sage source __doc__ to some rst file under doc/en/... and as well to some html files provided by some spkg. This raise two different but related questions: 1 - It seems that Sphinx build environment when building the reference ma

[sage-devel] Re: inconsistent results for characteristic polynomial?

2010-06-15 Thread Minh Nguyen
Hi folks, I appreciate the feedbacks. I have documented the definition of characteristic polynomials for graphs at ticket #9246: http://trac.sagemath.org/sage_trac/ticket/9246 The immortal words of Humpty Dumpty ring through the ages: "When I use a word, it means just what I choose it to mean -

Re: [sage-devel] Re: inconsistent results for characteristic polynomial?

2010-06-15 Thread John Cremona
On 15 June 2010 17:17, Minh Nguyen wrote: > Hi folks, > > I appreciate the feedbacks. I have documented the definition of > characteristic polynomials for graphs at ticket #9246: > > http://trac.sagemath.org/sage_trac/ticket/9246 > > The immortal words of Humpty Dumpty ring through the ages: > > "

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

2010-06-15 Thread kcrisman
I haven't posted about this before, but on my OSX 10.6 MacBook Pro, I have consistently gotten this error when doing doctesting of sage/plot/ plot3d/base.pyx. Built from scratch, doesn't matter. I figured it is just my computer, but figured I'd ask if anyone else has seen something like this. If

Re: [sage-devel] Sage crossref...

2010-06-15 Thread Mike Hansen
Hello, On Tue, Jun 15, 2010 at 7:36 AM, Florent Hivert wrote: >      Hi there, > > I'd like to have some crossref back and forth from sage source __doc__ to some > rst file under doc/en/... and as well to some html files provided by some > spkg. This raise two different but related questions: > >

[sage-devel] Re: inconsistent results for characteristic polynomial?

2010-06-15 Thread Jaap Spies
John Cremona wrote: On 15 June 2010 17:17, Minh Nguyen wrote: Hi folks, I appreciate the feedbacks. I have documented the definition of characteristic polynomials for graphs at ticket #9246: http://trac.sagemath.org/sage_trac/ticket/9246 The immortal words of Humpty Dumpty ring through the a

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

2010-06-15 Thread Justin C. Walker
On Jun 15, 2010, at 09:50 , kcrisman wrote: I haven't posted about this before, but on my OSX 10.6 MacBook Pro, I have consistently gotten this error when doing doctesting of sage/ plot/ plot3d/base.pyx. Built from scratch, doesn't matter. I figured it is just my computer, but figured I'd a

Re: [sage-devel] (gap) interface and strings

2010-06-15 Thread Mike Hansen
On Tue, Jun 15, 2010 at 8:26 AM, Nicolas M. Thiery wrote: > I have a question about passing down strings to functions of other > systems. For (a stupid) example, if I want to concatenate two strings > in GAP, I need to do: > >    sage: gap.Concatenation("\"foo\"", "\"bar\"") >    foobar Or sage:

Re: [sage-devel] Sage crossref...

2010-06-15 Thread Florent Hivert
Hi, Sorry for replying to myself. > I'd like to have some crossref back and forth from sage source __doc__ to some > rst file under doc/en/... and as well to some html files provided by some > spkg. This raise two different but related questions: > > 1 - It seems that Sphinx build enviro

[sage-devel] I believe ticket #8700 can be closed

2010-06-15 Thread Mariah Lenox
I believe ticket #8700 (needs_review defect) can be closed. It has a milestone of 4.4.4 and a patched spkg libpng-1.2.35.p1.spkg but libpng-1.2.35.p1.spkg is already in 4.4.3 (and the problem mentioned in #8700 is fixed). Can someone with the proper authority please close #8700. Mariah --

[sage-devel] I believe ticket #5238 can be closed

2010-06-15 Thread Mariah Lenox
I believe ticket #5238 can be closed. Ticket #5238 (remove qsieve.spkg and replace it by mpQS (part of FLINT)) should be closed because qsieve.spkg is no longer part of standard. Would someone with the proper authority please close #5238. Mariah -- To post to this group, send an email to sage-

[sage-devel] using server_pool to balance load across several machines?

2010-06-15 Thread Alex Ghitza
Hi, While looking at the arguments for the notebook() command, the first thing that comes to mind when I see "server_pool" is that it would be possible to have the notebook server run worksheet processes on different machines. However, the docstring and the examples seem to suggest that it is (m

[sage-devel] Ticket #8645 closed but problem persists?

2010-06-15 Thread Nils Bruin
The following ticket has been marked as fixed and merged in 4.4.2: http://trac.sagemath.org/sage_trac/ticket/8645 however, I have just built 4.4.3 from source and the orginally reported problem still occurs (i.e., "maxima.fasb" cannot be copied, but maxima-5.20.1.p0 happily reports successful ins

[sage-devel] Re: question about pattern matching in pynac

2010-06-15 Thread Tom Coates
> My vote is to have factorial(n) = n(n-1)...2.1 whenever n is integer. > > Cheers, > > Florent We certainly need to allow for symbolic input too, so that Sage can simplify expressions involving factorials and binomial coefficients such as: sage: var('k,n') (k, n) sage: f = factorial(k)*factoria

[sage-devel] Introspection (for gap3)

2010-06-15 Thread Nicolas M. Thiery
Hi! I am working with the gap3 devs on introspection with ?? I gather that one approach is to implement _sage_src_ to return a string representation of the code. Any idea why the first example below gives a "source file open failed", whereas the second works? Where is the code in charge

[sage-devel] Re: question about pattern matching in pynac

2010-06-15 Thread rjf
factorial(n+1)/factorial(n) is generally believed to be n+1. It is proper treatment of matters like this that make simplification interesting. It is fairly pointless to raise an error for factorial for any number except possibly explicit negative integers. It may also be counterproductive to c

[sage-devel] Re: Ticket #8645 closed but problem persists?

2010-06-15 Thread kcrisman
invalid/wontfix means yet another thing. There is a link to http://trac.sagemath.org/sage_trac/ticket/8951, which is positive review (by you!) but was not yet merged, since 4.4.4.alpha0 was only pos. rev. tix (right?). - kcrisman On Jun 15, 6:18 pm, Nils Bruin wrote: > The following ticket has

[sage-devel] Re: Relevant Sessions at upcoming Joint Meetings

2010-06-15 Thread kcrisman
On Jun 15, 9:54 am, kcrisman wrote: > On Jun 15, 9:30 am, mhampton wrote: > > > It looks like the cheapest booth we might qualify for (the "Special > > Category") is $602.  To qualify, you have to have fewer than 6 > > employees.  We definitely meet that requirement, since I think we have > > 0

[sage-devel] Re: Ticket #8645 closed but problem persists?

2010-06-15 Thread Nils Bruin
On Jun 15, 5:05 pm, kcrisman wrote: > invalid/wontfix means yet another thing. "... than fixed" I presume. But #8645 is closed as "fixed", not as "invalid" or "wontfix". I observed that the issue is not "fixed", so that's why I suspected a misfiling. I don't know how important it is to keep an acc

Re: [sage-devel] I believe ticket #8700 can be closed

2010-06-15 Thread Minh Nguyen
On Wed, Jun 16, 2010 at 5:55 AM, Mariah Lenox wrote: > Can someone with the proper authority please > close #8700. Done. -- Regards Minh Van Nguyen -- 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..

Re: [sage-devel] I believe ticket #5238 can be closed

2010-06-15 Thread Minh Nguyen
On Wed, Jun 16, 2010 at 6:23 AM, Mariah Lenox wrote: > I believe ticket #5238 can be closed. Done. -- Regards Minh Van Nguyen -- 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 mo

[sage-devel] Re: I think I've got a working version of the my enhancements to jmol in the notebook...

2010-06-15 Thread Jonathan
I've now tested Sage 4.4.3 with sun java and ubuntu 10.04 32 bit (don't have a 64 bit version installed). The 32 bit works fine. On Jun 14, 9:15 pm, Dan Drake wrote: > I tried Jason's spkg with 4.4.4.alpha0, and I never actually got my plot > to display. The control panel showed up, and Jmol app

[sage-devel] Re: Relevant Sessions at upcoming Joint Meetings

2010-06-15 Thread mhampton
> > That doesn't mean we shouldn't do it, but the point is that funding > would be a relatively trivial issue compared to staffing.  Any > takers?  I guess Marshall and I are volunteering, based on our > posts :) > > - kcrisman Yes, I can commit to being there about 1/2 the time. Based on previ

[sage-devel] factorial() and gamma()

2010-06-15 Thread Tom Coates
As ddrake pointed out in Trac #9248, even when x is in the symbolic ring, factorial(x) is not simply calling gamma(x+1): sage: x=I; factorial(x) 0.498015668118356 - 0.154949828301811*I sage: gamma(x+1) gamma(I + 1) So something strange is going on. I think that the first example here is probabl

Re: [sage-devel] factorial() and gamma()

2010-06-15 Thread David Kirkby
On 16 June 2010 05:28, Tom Coates wrote: > > As ddrake pointed out in Trac #9248, even when x is in the symbolic > ring, factorial(x) is not simply calling gamma(x+1): > > sage: x=I; factorial(x) > 0.498015668118356 - 0.154949828301811*I > sage: gamma(x+1) > gamma(I + 1) > > So something strange i

Re: [sage-devel] Re: Relevant Sessions at upcoming Joint Meetings

2010-06-15 Thread William Stein
On Tue, Jun 15, 2010 at 8:43 PM, mhampton wrote: > > >> >> That doesn't mean we shouldn't do it, but the point is that funding >> would be a relatively trivial issue compared to staffing.  Any >> takers?  I guess Marshall and I are volunteering, based on our >> posts :) >> >> - kcrisman > > Yes, I