[sage-devel] Re: Seeing the effect of the method text in the given variable

2009-12-30 Thread Jason Grout
Sami Losoi wrote: > *How is the effect of the method text stored in the given variable?* > > Example of the situation: > > sage: p = plot(x**2,x) + text("hello", (1,2)) > sage: dir(p) > ['SHOW_OPTIONS', ' - - cut - - > > The last command suggests that the effect of the method text is stored > i

Re: [sage-devel] Re: bug in sagenb - deleting and stopping worksheet does not work

2009-12-30 Thread Pat LeSmithe
On 12/30/2009 01:31 PM, ma...@mendelu.cz wrote: > I did more tests - Sage 4.2. is the last version where deleting and > stopping workseehts via buttons from "Home" folder works for me. One or more of these problems may appear in many other browsers, too. Could you try commenting out if no

[sage-devel] Seeing the effect of the method text in the given variable

2009-12-30 Thread Sami Losoi
*How is the effect of the method text stored in the given variable?* Example of the situation: sage: p = plot(x**2,x) + text("hello", (1,2)) sage: dir(p) ['SHOW_OPTIONS', ' - - cut - - The last command suggests that the effect of the method text is stored in one of the variables in the list. It

Re: [sage-devel] Should sage-env print variables it uses?

2009-12-30 Thread Dr. David Kirkby
William Stein wrote: > I realized that the issue is that it would print all the variables out > when I type > > $ sage > ... many variables > ... > sage: > > Which many would find annoying. > > You could make an environment variable though that makes it print out > those vars. E.g., SAGE_PORT

Re: [sage-devel] Should sage-env print variables it uses?

2009-12-30 Thread William Stein
On Wed, Dec 30, 2009 at 5:34 PM, Dr. David Kirkby wrote: > William Stein wrote: >> On Wed, Dec 30, 2009 at 5:10 PM, Dr. David Kirkby >> wrote: >>> At the bottom of sage-env, there is some code which can obviously be >>> changed to >>> print the value of some variables, but currently does not do

Re: [sage-devel] Should sage-env print variables it uses?

2009-12-30 Thread Dr. David Kirkby
William Stein wrote: > On Wed, Dec 30, 2009 at 5:10 PM, Dr. David Kirkby > wrote: >> At the bottom of sage-env, there is some code which can obviously be changed >> to >> print the value of some variables, but currently does not do so. >> >> if [ 1 = 2 ]; then >> echo "AR=$AR" >> echo "AS=$AS" >>

Re: [sage-devel] Should sage-env print variables it uses?

2009-12-30 Thread William Stein
On Wed, Dec 30, 2009 at 5:10 PM, Dr. David Kirkby wrote: > At the bottom of sage-env, there is some code which can obviously be changed > to > print the value of some variables, but currently does not do so. > > if [ 1 = 2 ]; then > echo "AR=$AR" > echo "AS=$AS" > echo "CC=$CC" > echo "CFLAGS=$CF

[sage-devel] Should sage-env print variables it uses?

2009-12-30 Thread Dr. David Kirkby
At the bottom of sage-env, there is some code which can obviously be changed to print the value of some variables, but currently does not do so. if [ 1 = 2 ]; then echo "AR=$AR" echo "AS=$AS" echo "CC=$CC" echo "CFLAGS=$CFLAGS" echo "CXX=$CXX" echo "CXXFLAGS=$CXXFLAGS" echo "ECLDIR=$ECLDIR" echo

Re: [sage-devel] doctest failures due to rounding errors on Solaris.

2009-12-30 Thread Dr. David Kirkby
Robert Bradshaw wrote: >>> > ** > File "/rootpool2/local/kirkby/sage-4.3/devel/sage/sage/symbolic/ > pynac.pyx", line > 1276: > sage: py_exp(float(1)) > Expected: > 2.7182818284590451 > Got:

Re: [sage-devel] Producing patch - no working Sage

2009-12-30 Thread Dr. David Kirkby
Minh Nguyen wrote: > Hi David, > > On Thu, Dec 31, 2009 at 4:54 AM, Dr. David Kirkby > wrote: > > > >> (I normally tend to extract the file, then >> increment the patch number, so I'd be editing >> $SAGE_ROOT/spkg/standard/foobar-1.0.p0/spkg-install > > That sounds sensible. > > >> Martin A

Re: [sage-devel] doctest failures due to rounding errors on Solaris.

2009-12-30 Thread Robert Bradshaw
On Dec 30, 2009, at 8:49 AM, Dr. David Kirkby wrote: > Robert Bradshaw wrote: >> On Dec 29, 2009, at 9:59 PM, Peter Jeremy wrote: >> >>> On 2009-Dec-29 23:29:42 +, "Dr. David Kirkby" >>> wrote: There are a few failures, but these couple just came up, and look rather odd, as this is o

[sage-devel] Re: licenses for sage-enhanced books to be eventually included in Sage

2009-12-30 Thread Adam Webb
> > I never really thought about this distinction--I wish there was   > something like CC-by-sa-src as well. Source doesn't make as much sense   > for a photo, but for something like a LaTeX document or a vector   > graphic it is very valuable--almost an essential part of the "share   > alike" ide

[sage-devel] Re: bug in sagenb - deleting and stopping worksheet does not work

2009-12-30 Thread ma...@mendelu.cz
I did more tests - Sage 4.2. is the last version where deleting and stopping workseehts via buttons from "Home" folder works for me. Tested on some personal installations as well as at https://sagenb.kaist.ac.kr (4.2.1 - does not work) http://uw.sagenb.org (4.2.1 - does not work) and http://www.

[sage-devel] Re: Fwd: SAGE ignores Ctrl-C?!? Is this a bug or a feature

2009-12-30 Thread Simon King
On 30 Dez., 21:09, Simon King wrote: > Third (and probably most debatable) reason: > If we forget the monomial order for a moment: How does a polynomial > ring in x over a polynomial ring in y differ from a polynomial ring in > x and y, computationally? Shouldn't one simplify a construction if the

[sage-devel] Re: Fwd: SAGE ignores Ctrl-C?!? Is this a bug or a feature

2009-12-30 Thread Simon King
Hi John! On 30 Dez., 18:18, John Cremona wrote: [...] > As it is defined, PP is a polynomial ring in one variable over a > polynomial ring in one variable. > Would it be a good thing to  automatically convert this into a > polynomial ring with *two* variables? What do people think? > > I think: n

[sage-devel] Re: conjugates in SR disappear

2009-12-30 Thread Håkan Granath
> The first comment on the ticket by Karl-Dieter shows a workaround: Thank you! /Håkan -- 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 at http://gr

Re: [sage-devel] conjugates in SR disappear

2009-12-30 Thread Burcin Erocal
On Wed, 30 Dec 2009 10:56:42 -0800 (PST) Håkan Granath wrote: > When using conjugate() in the symbolic ring some functions seem to > forget the conjugate: > > -- > | Sage Version 4.3, Release Date: 2009-12-24

Re: [sage-devel] sage-check-64

2009-12-30 Thread Minh Nguyen
Hi David, On Thu, Dec 31, 2009 at 5:16 AM, Dr. David Kirkby wrote: > Where does that file come from? It seems to magically appear in local/bin if > one > builds Sage, but I've no idea where it is stored, and so what needs editing. The file sage-check-64 is usually packed in the spkg sage_scr

Re: [sage-devel] Producing patch - no working Sage

2009-12-30 Thread Minh Nguyen
Hi David, On Thu, Dec 31, 2009 at 4:54 AM, Dr. David Kirkby wrote: > (I normally tend to extract the file, then > increment the patch number, so I'd be editing > $SAGE_ROOT/spkg/standard/foobar-1.0.p0/spkg-install That sounds sensible. > Martin Albrecht added a patch for me to > > http://tr

[sage-devel] conjugates in SR disappear

2009-12-30 Thread Håkan Granath
When using conjugate() in the symbolic ring some functions seem to forget the conjugate: -- | Sage Version 4.3, Release Date: 2009-12-24 | | Type notebook() for the GUI, and license() for information.

Re: [sage-devel] sage-check-64

2009-12-30 Thread Dr. David Kirkby
William Stein wrote: > On Tue, Dec 29, 2009 at 3:06 PM, Dr. David Kirkby > wrote: >> In $SAGE_LOCAL/bin/sage-check-64 it says the following. >> >> --- >> # If SAGE64 is set to yes check if $SAGE_LOCAL/lib exists on Solaris as well >> as >> # OSX sin

Re: [sage-devel] Producing patch - no working Sage

2009-12-30 Thread Dr. David Kirkby
William Stein wrote: > On Wed, Dec 30, 2009 at 9:59 AM, Dr. David Kirkby > wrote: >> John Cremona wrote: >>> I regularly use Sage on a machine which either does not have its own >>> hg, or has too old a version, and then I just use "sage -hg" to run >>> Sage's own hg. That's after building Sage,

Re: [sage-devel] Producing patch - no working Sage

2009-12-30 Thread William Stein
On Wed, Dec 30, 2009 at 9:59 AM, Dr. David Kirkby wrote: > John Cremona wrote: >> I regularly use Sage on a machine which either does not have its own >> hg, or has too old a version, and then I just use "sage -hg" to run >> Sage's own hg.  That's after building Sage, of course. >> >> John > > Yes

Re: [sage-devel] Producing patch - no working Sage

2009-12-30 Thread Dr. David Kirkby
John Cremona wrote: > I regularly use Sage on a machine which either does not have its own > hg, or has too old a version, and then I just use "sage -hg" to run > Sage's own hg. That's after building Sage, of course. > > John Yes, but the point was, on my Sun Ultra 27, Sage will not build. I hav

Re: [sage-devel] Producing patch - no working Sage

2009-12-30 Thread Dr. David Kirkby
Minh Nguyen wrote: > Hi David, > > On Thu, Dec 31, 2009 at 3:42 AM, Dr. David Kirkby > wrote: >> How can I produce a patch for Sage, if my Sage will not run on my machine? > > If you don't have hg installed on your system, you can use the command > diff instead. For example, say the following co

Re: [sage-devel] Producing patch - no working Sage

2009-12-30 Thread John Cremona
I regularly use Sage on a machine which either does not have its own hg, or has too old a version, and then I just use "sage -hg" to run Sage's own hg. That's after building Sage, of course. John 2009/12/30 Minh Nguyen : > Hi David, > > On Thu, Dec 31, 2009 at 3:42 AM, Dr. David Kirkby > wrote:

[sage-devel] Fwd: SAGE ignores Ctrl-C?!? Is this a bug or a feature

2009-12-30 Thread John Cremona
I am forwarding to sage-devel this posting from Simon King (originally to sage-support), since he asks a question which should be debated by developers: see below. -- Forwarded message -- From: Simon King Date: Dec 30, 11:07 am Subject: SAGE ignores Ctrl-C?!? Is this a bug or a

Re: [sage-devel] Producing patch - no working Sage

2009-12-30 Thread Minh Nguyen
Hi David, On Thu, Dec 31, 2009 at 3:42 AM, Dr. David Kirkby wrote: > How can I produce a patch for Sage, if my Sage will not run on my machine? If you don't have hg installed on your system, you can use the command diff instead. For example, say the following content is saved to a file called "m

[sage-devel] Re: Producing patch - no working Sage

2009-12-30 Thread Jason Grout
Dr. David Kirkby wrote: > How can I produce a patch for Sage, if my Sage will not run on my machine? > Currently Sage will not build on my Ultra 27, so I can't do anything from > inside > the Sage environment. > > I must get to grips with 'hg' and how to produce patches for Sage using > Mercur

Re: [sage-devel] doctest failures due to rounding errors on Solaris.

2009-12-30 Thread Dr. David Kirkby
Robert Bradshaw wrote: > On Dec 29, 2009, at 9:59 PM, Peter Jeremy wrote: > >> On 2009-Dec-29 23:29:42 +, "Dr. David Kirkby" >> wrote: >>> There are a few failures, but these couple just came up, and look >>> rather odd, as this is only an error in the last decimal place, and >>> so will be su

[sage-devel] Producing patch - no working Sage

2009-12-30 Thread Dr. David Kirkby
How can I produce a patch for Sage, if my Sage will not run on my machine? Currently Sage will not build on my Ultra 27, so I can't do anything from inside the Sage environment. I must get to grips with 'hg' and how to produce patches for Sage using Mercurial. I've never really got the hang of

[sage-devel] Re: licenses for sage-enhanced books to be eventually included in Sage

2009-12-30 Thread Jason Grout
Robert Bradshaw wrote: > On Dec 29, 2009, at 9:24 PM, Jason Grout wrote: > >> William Stein wrote: >> The major difference I see between GFDL and CC-by-sa is that CC-by- sa does not have the requirement that the source be distributed with the work. >>> The statement you

[sage-devel] Re: licenses for sage-enhanced books to be eventually included in Sage

2009-12-30 Thread Jason Grout
David Joyner wrote: > On Wed, Dec 30, 2009 at 12:06 AM, Jason Grout > wrote: >> David Joyner wrote: >>> On Tue, Dec 29, 2009 at 10:35 PM, Jason Grout >>> wrote: > > > >> I guess the situation changes if some example code from the document is >> actually incorporated into Sage. For example

Re: [sage-devel] docbuild takes ages (again)

2009-12-30 Thread Minh Nguyen
Hi John, On Tue, Dec 29, 2009 at 7:46 AM, John Cremona wrote: > I really hope we can fix this. It takes 10 minutes to make a clone on > my laptop now! See ticket #7796 [1] for an updated Sphinx spkg. The fix is essentially what Pat suggested. [1] http://trac.sagemath.org/sage_trac/ticket/7796

Re: [sage-devel] Open Solaris - do we bother with 32-bit ?

2009-12-30 Thread Dr. David Kirkby
Robert Bradshaw wrote: > On Dec 29, 2009, at 9:14 PM, Peter Jeremy wrote: > >> On 2009-Dec-29 23:57:13 +, "Dr. David Kirkby" >> wrote: >>> Peter Jeremy wrote: >>> Yes it does. And I can understand why, since for 99% of programs, >>> there is no >>> advantage to 64-bit, but some disadvantages

Re: [sage-devel] Re: licenses for sage-enhanced books to be eventually included in Sage

2009-12-30 Thread David Joyner
On Wed, Dec 30, 2009 at 12:06 AM, Jason Grout wrote: > David Joyner wrote: >> On Tue, Dec 29, 2009 at 10:35 PM, Jason Grout >> wrote: >>> ... > I guess the situation changes if some example code from the document is > actually incorporated into Sage.  For example, if in the book, I have a > sam

Re: [sage-devel] Open Solaris - do we bother with 32-bit ?

2009-12-30 Thread Dr. David Kirkby
Peter Jeremy wrote: > On 2009-Dec-29 23:57:13 +, "Dr. David Kirkby" > wrote: >> Peter Jeremy wrote: >> Yes it does. And I can understand why, since for 99% of programs, there is >> no >> advantage to 64-bit, but some disadvantages (larger pointers, let fit in >> cache >> etc). > > OTOH,

Re: [sage-devel] Open Solaris - do we bother with 32-bit ?

2009-12-30 Thread Peter Jeremy
On 2009-Dec-30 00:49:40 -0800, Robert Bradshaw wrote: >On Dec 29, 2009, at 9:14 PM, Peter Jeremy wrote: >> x86 vs x86_64 isn't as clearcut because the x86 architecture is so >> badly designed - the relatively small number and lack of orthogonality ... >I was under the impression that x86-64 actua

Re: [sage-devel] out of memory while building reference manual

2009-12-30 Thread Dan Drake
On Wed, 30 Dec 2009 at 12:43AM -0800, Pat LeSmithe wrote: > On 12/29/2009 07:28 PM, Dan Drake wrote: > > I'm trying to build the reference manual for 4.3 on a virtual machine > > with a gigabyte of memory, but it fails: > > [...] > > Does building the reference manually truly need that much memory?

Re: [sage-devel] wiki page on non-ASCII characters in source file

2009-12-30 Thread Robert Bradshaw
On Dec 27, 2009, at 2:55 AM, Minh Nguyen wrote: > Hi Robert, > > On Sun, Dec 27, 2009 at 2:46 PM, Robert Bradshaw > wrote: > > > >> I'm not so sure this is a good idea. First, the idea of segregating >> all development pages behind /devel raises the (psychological) >> barrier >> between using

Re: [sage-devel] globals

2009-12-30 Thread Robert Bradshaw
On Dec 27, 2009, at 8:47 AM, Nicolas M. Thiery wrote: > Hi Robert B and all, > > Does anyone know a trick to access the global variables for the "main" > scope? > > In the attached patch (for 4.2; untested on 4.3), I am implementing > the following in sage.misc.misc_c: > >def inject_vari

Re: [sage-devel] Re: Compilation in Sage of Cython files requiring optional packages

2009-12-30 Thread Robert Bradshaw
On Dec 29, 2009, at 5:07 AM, Nathann Cohen wrote: > Well, after taking a look at file modules_list, would it be so bad if > we were just adding at the end of the definition of this huge list : > > if ( the correct library is installed ): >ext_modules.append( whatever you want) > > The problem

Re: [sage-devel] Open Solaris - do we bother with 32-bit ?

2009-12-30 Thread Robert Bradshaw
On Dec 29, 2009, at 9:14 PM, Peter Jeremy wrote: > On 2009-Dec-29 23:57:13 +, "Dr. David Kirkby" > wrote: >> Peter Jeremy wrote: >> Yes it does. And I can understand why, since for 99% of programs, >> there is no >> advantage to 64-bit, but some disadvantages (larger pointers, let >> fit

Re: [sage-devel] out of memory while building reference manual

2009-12-30 Thread Pat LeSmithe
On 12/29/2009 07:28 PM, Dan Drake wrote: > I'm trying to build the reference manual for 4.3 on a virtual machine > with a gigabyte of memory, but it fails: > [...] > Does building the reference manually truly need that much memory? I know > I don't have any swap, but I thought 900+ megabytes would

Re: [sage-devel] Re: licenses for sage-enhanced books to be eventually included in Sage

2009-12-30 Thread Robert Bradshaw
On Dec 29, 2009, at 9:24 PM, Jason Grout wrote: > William Stein wrote: > >>> The major difference I see between GFDL and CC-by-sa is that CC-by- >>> sa >>> does not have the requirement that the source be distributed with >>> the >>> work. >> >> The statement you just made above about GFDL is f

[sage-devel] Re: licenses for sage-enhanced books to be eventually included in Sage

2009-12-30 Thread Rob Beezer
A few comments based on having thought carefully about this for a few years now. 1. The preamble of the GNU Free Documentation License (GFDL) from the Free Software Foundation (home of the GPL) says: "The purpose of this License is to make a manual, textbook, or other functional and useful docum

Re: [sage-devel] doctest failures due to rounding errors on Solaris.

2009-12-30 Thread Robert Bradshaw
On Dec 29, 2009, at 9:59 PM, Peter Jeremy wrote: > On 2009-Dec-29 23:29:42 +, "Dr. David Kirkby" > wrote: >> There are a few failures, but these couple just came up, and look >> rather odd, as this is only an error in the last decimal place, and >> so will be subject to rounding errors with d