[sage-devel] bzip2 not deleting previous buids

2010-01-10 Thread Dr. David Kirkby
I just noticed something odd on Solaris 8. bzip2 built fine, but I started the build after modifying one of the files. Then I get: cp -f libbz2.a /export/home/drkirkby/sage-4.3/spkg/../local/lib chmod a+r /export/home/drkirkby/sage-4.3/spkg/../local/lib/libbz2.a cp -f bzgrep /export/home/drkirkb

Re: [sage-devel] My first calculation with sage on Open Solaris in VirtualBox!

2010-01-10 Thread Dr. David Kirkby
William Stein wrote: On Sun, Jan 10, 2010 at 5:46 PM, Dr. David Kirkby In [1]: 1+2 Out[1]: 3 That looks remarkably like Mathematica!! drkir...@hawk:~/sage-4.3.1.alpha1$ math Mathematica 7.0 for Sun Solaris x86 (64-bit) Copyright 1988-2009 Wolfram Research, Inc. In[1]:= 1+2 Out[1]= 3 Ye

Re: [sage-devel] Re: Ideas about improving sage desktop app

2010-01-10 Thread William Stein
On Sun, Jan 10, 2010 at 8:56 PM, ghtdak wrote: > > > On Jan 9, 7:50 pm, ghtdak wrote: >> On Jan 9, 2:20 am, Alejandro Serrano wrote: >> >> > Hi, >> > I'm currently developing something very similar as the thing you are >> > proposing. I sent it to the list about two months ago >> > (http://grou

[sage-devel] Re: Ideas about improving sage desktop app

2010-01-10 Thread ghtdak
On Jan 9, 7:50 pm, ghtdak wrote: > On Jan 9, 2:20 am, Alejandro Serrano wrote: > > > Hi, > > I'm currently developing something very similar as the thing you are > > proposing. I sent it to the list about two months ago > > (http://groups.google.com/group/sage-devel/browse_thread/thread/53b3d6

Re: [sage-devel] Re: Does cliquer need long options?

2010-01-10 Thread Dr. David Kirkby
Nathann Cohen wrote: Hello !!! Cliquer is only used as a library, you will find the corresponding code in sage.graphs cliquer.pyx if necessary :-) Nathann Thank you. Given that, and the fact it fails on on both HP-UX and Solaris 8 due to the inclusion of the long options, I've created a ne

[sage-devel] Re: GAP to sage conversions

2010-01-10 Thread Dima Pasechnik
On Jan 11, 7:19 am, javier wrote: [...] > I have been trying some code to convert elements of gap finite fields > into the corresponding elements of sage finite fields. The sort of > straightforward manner fails because of this behavior: > > sage: a = gap("Z(2^4)") > sage: a^5 > Z(2^2) > > and a

Re: [sage-devel] Solaris, Python and OpenSSL

2010-01-10 Thread Dr. David Kirkby
Dr. David Kirkby wrote: I just tried a build of Sage 4.3 on Solaris 8 (released in 2001) on a Sun Blade 1000 (SPARC processors). There are no prizes for guessing where the Solaris 8 build failed - on the haslib module http://trac.sagemath.org/sage_trac/ticket/7892 Em, that was actually quit

Re: [sage-devel] server pool problem

2010-01-10 Thread Gonzalo Tornaria
On Sun, Jan 10, 2010 at 8:49 PM, John Cremona wrote: > The server log ends like this (for some reason I cannot scroll back as > it is running under screen): Use C-a [ to enter "copy mode" which allows you to see the scroll back of screen itself (pgup, arrows, etc, esc to quit). Gonzalo -- To po

Re: [sage-devel] My first calculation with sage on Open Solaris in VirtualBox!

2010-01-10 Thread Dr. David Kirkby
Dr. David Kirkby wrote: My install.log shows this after the python install: -- Failed to find the necessary bits to build these modules: _bsddb bsddb185 dl gdbm imageoplinuxaudiodev ossaudiode

Re: [sage-devel] My first calculation with sage on Open Solaris in VirtualBox!

2010-01-10 Thread Dr. David Kirkby
Dr. David Kirkby wrote: William Stein wrote: This means that you haven't installed the Sage library. Forget what I said. I thought you were saying the *python* library was not installed! No, the Sage library is certainly not installed. There are a number of problems to overcome before we

Re: [sage-devel] My first calculation with sage on Open Solaris in VirtualBox!

2010-01-10 Thread William Stein
On Sun, Jan 10, 2010 at 5:46 PM, Dr. David Kirkby wrote: >> You might try: >> >>  sage -ipython >> >> which would basically be equivalent, but without the errors. > > drkir...@hawk:~/sage-4.3.1.alpha1$ ./sage -ipython > Python 2.6.2 (r262:71600, Jan 10 2010, 22:21:32) > Type "copyright", "credits"

Re: [sage-devel] My first calculation with sage on Open Solaris in VirtualBox!

2010-01-10 Thread Dr. David Kirkby
William Stein wrote: On Sun, Jan 10, 2010 at 12:43 PM, Jaap Spies wrote: j...@opensolaris:~/Downloads/sage-4.3.1.alpha1$ ./sage -- | Sage Version 4.3.1.alpha1, Release Date: 2010-01-05| | Type notebook() for the

Re: [sage-devel] server pool problem

2010-01-10 Thread William Stein
On Sun, 2010-01-10 at 22:49 +, John Cremona wrote: > 2010/1/10 William Stein : > > > > > Try using instead > > > > sage: notebook(address="", accounts=True, secure=True, open_viewer=False, > >server_pool = ['sa...@localhost']) > > > > > > Good point: I did not have quotes around them.

Re: [sage-devel] Use of 'set -e' - be careful

2010-01-10 Thread Dr. David Kirkby
William Stein wrote: On Sun, Jan 10, 2010 at 4:30 PM, Dr. David Kirkby wrote: William Stein wrote: On Sun, Jan 10, 2010 at 5:55 AM, Dr. David Kirkby wrote: Please read if you intend to edit any shell scripts, such as spkg-install. ... Which is just another reason why I personally never eve

[sage-devel] Solaris, Python and OpenSSL

2010-01-10 Thread Dr. David Kirkby
Building Sage on Open Solaris is presenting some difficulties due to a failure of the hashlib module to install easily. On Solaris 10 (SPARC) is just seems to work ok. On OpenSolaris, it is far from clear how best to do it. I had a lot of trouble with it http://trac.sagemath.org/sage_trac/tic

Re: [sage-devel] Building ATLAS libraries failed on Open Solaris

2010-01-10 Thread Dr. David Kirkby
Jaap Spies wrote: I'm almost there: Finished building ATLAS core The Makefile generated in ATLAS for building shared libraries assumes the linker is the GNU linker, which it not true in your setup. (It is generally considered better to use the Sun linker in /usr/ccs/bin rather than the GNU linke

Re: [sage-devel] Use of 'set -e' - be careful

2010-01-10 Thread William Stein
On Sun, Jan 10, 2010 at 4:30 PM, Dr. David Kirkby wrote: > William Stein wrote: >> >> On Sun, Jan 10, 2010 at 5:55 AM, Dr. David Kirkby >> wrote: >>> >>> Please read if you intend to edit any shell scripts, such as >>> spkg-install. >> >> ... >> >> Which is just another reason why I personally ne

Re: [sage-devel] Use of 'set -e' - be careful

2010-01-10 Thread Dr. David Kirkby
William Stein wrote: On Sun, Jan 10, 2010 at 5:55 AM, Dr. David Kirkby wrote: Please read if you intend to edit any shell scripts, such as spkg-install. ... Which is just another reason why I personally never ever use "set -e"... William Well, failing to do so does give the problem that i

Re: [sage-devel] Re: sage -preparse fails

2010-01-10 Thread William Stein
On Sat, Jan 9, 2010 at 9:58 AM, Jason Grout wrote: > Ivan Andrus wrote: >> >> In 4.3.1.alpha1 (built from scratch on OS X 10.6) I get the following >> (from running sagetex): >> >> $ cat sagetest.sage ## This file (sagetest.sage) was *autogenerated* from >> the file sagetest.tex. >> import sagetex

[sage-devel] Building ATLAS libraries failed on Open Solaris

2010-01-10 Thread Jaap Spies
I'm almost there: Finished building ATLAS core The Makefile generated in ATLAS for building shared libraries assumes the linker is the GNU linker, which it not true in your setup. (It is generally considered better to use the Sun linker in /usr/ccs/bin rather than the GNU linker from binutils) Th

[sage-devel] Re: GAP to sage conversions

2010-01-10 Thread javier
Hi Simon, On Jan 10, 7:57 pm, Simon King wrote: > Is it possible to chose take the same name that GAP uses? In GAP the generator of (the multiplicative group of) say GF(16) is called "Z(2^4)", so I guess the answer is no, we cannot use GAP name. We can go for something like Z16, or z_16 or anyth

Re: [sage-devel] server pool problem

2010-01-10 Thread John Cremona
2010/1/10 William Stein : > > Try using instead > >  sage: notebook(address="", accounts=True, secure=True, open_viewer=False, >    server_pool = ['sa...@localhost']) > > Good point: I did not have quotes around them. So I added them, but the same happens. the firefox window says exactly Inte

Re: [sage-devel] Unknown control sequence '\texttt'

2010-01-10 Thread John Cremona
I had exactly the same thing happen (with sage-4.3.1.alpha1, firefox). John 2010/1/10 ma...@mendelu.cz : > Dear sage-devel > > when doing in notebook > > sage: show('x^2') > > or > > sage: show(type(factor)) > > I get error Unknown control sequence '\texttt' > > When I try > sage:'x^2' > > with c

[sage-devel] doctest failures in sage-4.3.1.alpha1

2010-01-10 Thread Gonzalo Tornaria
cpu = 2 x quad core xeon E5520 (nehalem/i7) os = debian 5.0/lenny (64 bit) The following tests failed: sage -t devel/sage/sage/symbolic/expression.pyx # 6 doctests failed sage -t devel/sage/sage/numerical/optimize.py # 6 doctests failed sage -t devel/sage/sage/interface

[sage-devel] Unknown control sequence '\texttt'

2010-01-10 Thread ma...@mendelu.cz
Dear sage-devel when doing in notebook sage: show('x^2') or sage: show(type(factor)) I get error Unknown control sequence '\texttt' When I try sage:'x^2' with checked "Typeset" button I get \newcommand{\Bold}[1]{\mathbf{#1}}\hbox{x^2} which is not valid LaTeX expression (supperscript outside

Re: [sage-devel] server pool problem

2010-01-10 Thread William Stein
2010/1/10 John Cremona : > Thanks -- answers below. > > 2010/1/10 William Stein : >> On Sun, Jan 10, 2010 at 12:36 PM, John Cremona >> wrote: >>> I'm running a sage server on a ubuntu linux machine, without problems. >>>  But when I set up a server pool then I cannot load any worksheets >>> (eith

Re: [sage-devel] server pool problem

2010-01-10 Thread John Cremona
Thanks -- answers below. 2010/1/10 William Stein : > On Sun, Jan 10, 2010 at 12:36 PM, John Cremona wrote: >> I'm running a sage server on a ubuntu linux machine, without problems. >>  But when I set up a server pool then I cannot load any worksheets >> (either from the admin account or a user ac

[sage-devel] Re: My first calculation with sage on Open Solaris in VirtualBox!

2010-01-10 Thread Jaap Spies
William Stein wrote: On Sun, Jan 10, 2010 at 12:43 PM, Jaap Spies wrote: j...@opensolaris:~/Downloads/sage-4.3.1.alpha1$ ./sage -- | Sage Version 4.3.1.alpha1, Release Date: 2010-01-05| | Type notebook() for the

Re: [sage-devel] server pool problem

2010-01-10 Thread William Stein
On Sun, Jan 10, 2010 at 12:36 PM, John Cremona wrote: > I'm running a sage server on a ubuntu linux machine, without problems. >  But when I set up a server pool then I cannot load any worksheets > (either from the admin account or a user account. > > I created accounts called sage0,sage1,sage2,sa

Re: [sage-devel] My first calculation with sage on Open Solaris in VirtualBox!

2010-01-10 Thread William Stein
On Sun, Jan 10, 2010 at 12:43 PM, Jaap Spies wrote: > j...@opensolaris:~/Downloads/sage-4.3.1.alpha1$ ./sage > -- > | Sage Version 4.3.1.alpha1, Release Date: 2010-01-05                | > | Type notebook() for the GUI, and licens

[sage-devel] My first calculation with sage on Open Solaris in VirtualBox!

2010-01-10 Thread Jaap Spies
j...@opensolaris:~/Downloads/sage-4.3.1.alpha1$ ./sage -- | Sage Version 4.3.1.alpha1, Release Date: 2010-01-05| | Type notebook() for the GUI, and license() for information.| --

Re: [sage-devel] homogenising of polynomials -- automatic choice of a new variable name?

2010-01-10 Thread Nick Alexander
That just leaves the question of inventing a new variable name given any n names already defined... I think the plan you suggested was reasonable. I suggest determining if all names have a common prefix, then seeing if each suffix is an integer. If yes, take the next largest integer suffix

[sage-devel] server pool problem

2010-01-10 Thread John Cremona
I'm running a sage server on a ubuntu linux machine, without problems. But when I set up a server pool then I cannot load any worksheets (either from the admin account or a user account. I created accounts called sage0,sage1,sage2,sage3 and set up ssh so that from the main sage account (from whic

[sage-devel] Re: GAP to sage conversions

2010-01-10 Thread Simon King
On 10 Jan., 19:39, javier wrote: > Is there a canonical or preferred way of calling the generator of GF > (q)? I went for "xq" (where q is a prime power) but that can easily > been changed. Is it possible to chose take the same name that GAP uses? Cheers, Simon -- To post to this group, send an

[sage-devel] Fwd: [networkx-discuss] networkx-1.0 release

2010-01-10 Thread Minh Nguyen
Hi folks, At last, the release of networkx-1.0. -- Regards Minh Van Nguyen -- Forwarded message -- From: Aric Hagberg Date: Mon, Jan 11, 2010 at 2:38 AM Subject: [networkx-discuss] networkx-1.0 release To: networkx-disc...@googlegroups.com An update to NetworkX, networkx-1.0

Re: [sage-devel] homogenising of polynomials -- automatic choice of a new variable name?

2010-01-10 Thread John Cremona
2010/1/10 Nick Alexander : >> I don't think it's a good idea to use the same variable names + one >> other, since then the user is left with two different polynomial rings >> in n and n+1 variables, with no inclusion map between them, but such >> that the n variables of the first have the same name

Re: [sage-devel] Use of 'set -e' - be careful

2010-01-10 Thread William Stein
On Sun, Jan 10, 2010 at 5:55 AM, Dr. David Kirkby wrote: > Please read if you intend to edit any shell scripts, such as spkg-install. ... Which is just another reason why I personally never ever use "set -e"... William > > I just tried to build Sage 4.3 on a Sun Blade 2000 running Solaris 8 -

Re: [sage-devel] homogenising of polynomials -- automatic choice of a new variable name?

2010-01-10 Thread Nick Alexander
I don't think it's a good idea to use the same variable names + one other, since then the user is left with two different polynomial rings in n and n+1 variables, with no inclusion map between them, but such that the n variables of the first have the same names as the first n variables of the seco

[sage-devel] GAP to sage conversions

2010-01-10 Thread javier
Hi Dmitri, On Jan 10, 5:48 pm, Dima Pasechnik wrote: > This is not good enough. It could be that the [1,1]-element lies in a > proper subring. > One should either test each matrix entry and take the biggest ring, or > ask GAP to do it for you. > Say, if A is a GAP matrix you can do > gap> Field(F

Re: [sage-devel] Conversion problem in fraction fields

2010-01-10 Thread Florent Hivert
Hi > In Sage 4.3, I came across the following problem when trying to coerce > rational numbers into the fraction field of Z[t]. > > sage: F = Frac(PolynomialRing(ZZ, 't')) > sage: F(1/2) > ... > TypeError: no conversion of this rational to integer > > I am guessing that thi

[sage-devel] homogenising of polynomials -- automatic choice of a new variable name?

2010-01-10 Thread John Cremona
I was writing some code which involves homogenising a polynomial (as part of a possible implementation of the projective completion of an affine variety). There is a homogenize method for multivariate polynomials which allows various options for naming the extra variable needed, all of which use t

[sage-devel] Re: Implementation of conjugacy classes

2010-01-10 Thread Dima Pasechnik
On Jan 11, 12:07 am, javier wrote: > Patch submitted athttp://sagetrac.org/sage_trac/ticket/7890 > > the conversion of matrices only works when the conversion of the gap > ring works. In particular, it fails for cyclotomic fields, cyclotomic > rings, and finite fields of non-prime order. I have

[sage-devel] Re: Implementation of conjugacy classes

2010-01-10 Thread Dima Pasechnik
Javier, > def _sage_(self): >         """ >         Override of ExpectElement._sage_ method. Aiming for a better > conversion. Initially just for matrices! >         """ >         if self.IsMatrix(): >             ring = self[1,1].Ring().sage() This is not good enough. It could be that the [1,1]

[sage-devel] ipython crashed!

2010-01-10 Thread John Cremona
Amazing: I just crashed ipython, by typing "sage" at my command line. My path is set so that sage runs $HOME/bin/sage which is currently set to 4.3, but most recently I had run 4.3.1.alpha1, so this is presumably caused by some files being left around by the newer python in 4.3.1 not being treated

[sage-devel] bad binomial sum

2010-01-10 Thread Harald Schilly
Hi, I got this from the report a problem link: Typing (in the inotebook) var('t,k,i') sum(binomial(i+t,t),i,0,k) results in binomial(k + t + 1, t + 1) - 1 which is false, the well-known answer is binomial(k + t + 1, t + 1) -- To post to this group, send an email to sage-devel@googlegroups.com

[sage-devel] Re: Implementation of conjugacy classes

2010-01-10 Thread javier
Patch submitted at http://sagetrac.org/sage_trac/ticket/7890 the conversion of matrices only works when the conversion of the gap ring works. In particular, it fails for cyclotomic fields, cyclotomic rings, and finite fields of non-prime order. I have also modified the _matrix_ method so that if n

Re: [sage-devel] Re: Implementation of conjugacy classes

2010-01-10 Thread John Cremona
This is the way objects from the pari library are converted to Sage. pari has an (imperfect) system of attributing types to objects, and the conversion code branches on the value of its pari type, calling suitable conversion code in each case. So this seems like a sensible way to go for GAP conver

[sage-devel] Re: Implementation of conjugacy classes

2010-01-10 Thread Dima Pasechnik
Javier, [...] > > So, it wasn't that hard (for matrices) after all. Good! > I don't know whether/ > how this can be applied to the E(9) thing unless there is an > IsSomething gap method that can be used for them. Sure, there is IsCyclotomic and IsIntegralCyclotomic for cyclotomics, resp., cyclotom

[sage-devel] Re: Implementation of conjugacy classes

2010-01-10 Thread Simon King
Hi Javier! On 10 Jan., 15:26, javier wrote: > def _sage_(self): >         """ >         Override of ExpectElement._sage_ method. Aiming for a better > conversion. Initially just for matrices! >         """ >         if self.IsMatrix(): >             ring = self[1,1].Ring().sage() >             re

[sage-devel] Re: Implementation of conjugacy classes

2010-01-10 Thread javier
Hi all, have been hacking around a bit and finally got to this: the class GapElement doesn't have a _sage_ method, when sage() is called, it defers to the ExpectElement method, which is not aware of the fact that we have a GAP object to start with. OTOH, I observed there is a _matrix_ method tha

[sage-devel] Re: Implementation of conjugacy classes

2010-01-10 Thread Dima Pasechnik
Hi Simon, On Jan 10, 9:32 pm, Simon King wrote: > Hi Dima! > > On 10 Jan., 13:47, Dima Pasechnik wrote: > > > On Jan 10, 7:04 pm, javier wrote: > > well, there no "static type" matrices in GAP (well, unless you work > > with, say, matrix Lie algebras, and have multiplication overloaded). > > The

[sage-devel] Use of 'set -e' - be careful

2010-01-10 Thread Dr. David Kirkby
Please read if you intend to edit any shell scripts, such as spkg-install. I just tried to build Sage 4.3 on a Sun Blade 2000 running Solaris 8 - an old operating system I know, but it shows once again how different systems can find bugs that new ones do not. The output from the python-2.6.2.

[sage-devel] Re: Implementation of conjugacy classes

2010-01-10 Thread javier
Hi Simon, On Jan 10, 11:33 am, Simon King wrote: > Well, that's a default method, i.e., if nothing else is implemented > than a conversion by strings is attempted, because there is some hope > that the result makes sense. > > So, a proper way would be to override the default sage() method (from >

[sage-devel] Re: Implementation of conjugacy classes

2010-01-10 Thread Simon King
Hi Dima! On 10 Jan., 13:47, Dima Pasechnik wrote: > On Jan 10, 7:04 pm, javier wrote: > well, there no "static type" matrices in GAP (well, unless you work > with, say, matrix Lie algebras, and have multiplication overloaded). > They are just lists of lists of right sizes, with entries in a comm

[sage-devel] Re: Implementation of conjugacy classes

2010-01-10 Thread Dima Pasechnik
On Jan 10, 7:04 pm, javier wrote: [...] > For instance if > you create a gap matrix (with integral coefficients) well, there no "static type" matrices in GAP (well, unless you work with, say, matrix Lie algebras, and have multiplication overloaded). They are just lists of lists of right sizes, wi

[sage-devel] Re: Implementation of conjugacy classes

2010-01-10 Thread Simon King
On 10 Jan., 12:04, javier wrote: > This is now Ticket #7890:http://trac.sagemath.org/sage_trac/ticket/7890 > > Thanks for volunteering to work on this, Dmitri! It would be awesome > to be able to access all that gap functions from sage. > Skimming a bit at the conversion code, it looks like the fu

Re: [sage-devel] Re: Implementation of conjugacy classes

2010-01-10 Thread David Joyner
On Sun, Jan 10, 2010 at 6:04 AM, javier wrote: > This is now Ticket #7890: > http://trac.sagemath.org/sage_trac/ticket/7890 > > Thanks for volunteering to work on this, Dmitri! It would be awesome > to be able to access all that gap functions from sage. > Skimming a bit at the conversion code, it

[sage-devel] Re: Reorganisation of graph methods

2010-01-10 Thread Simon King
Hi Nathann and Robert! On 10 Jan., 10:59, Robert Bradshaw wrote: > > I was thinking about the huge list of functions we have at the moment > > in the Graph class, and the length of Graph.py. I am a bit puzzled: Do you really talk about *functions*? Should there be any function *at all*, except f

[sage-devel] Re: Implementation of conjugacy classes

2010-01-10 Thread javier
This is now Ticket #7890: http://trac.sagemath.org/sage_trac/ticket/7890 Thanks for volunteering to work on this, Dmitri! It would be awesome to be able to access all that gap functions from sage. Skimming a bit at the conversion code, it looks like the function "sage" is called on the gap string

Re: [sage-devel] Reorganisation of graph methods

2010-01-10 Thread Nathann Cohen
> This won't work for methods, as the functions in clique won't get a bound > self. I.e. you'd have to write > > sage: g.trees.is_tree(g) > > unless you did some trickery behind the scenes. Yes, I thought we could replace g.is_trees by g.trees.is_tree > I would actually find this interface less e

Re: [sage-devel] Reorganisation of graph methods

2010-01-10 Thread Robert Bradshaw
On Jan 10, 2010, at 12:15 AM, Nathann Cohen wrote: Hello everybody !!! This is a copy of a mail I sent to Robert Miller, who may require a larger audience :-) --- I was thinking about the huge list of functions we have at the moment in the Graph class, and the length of Graph.p

[sage-devel] Re: revolution plot

2010-01-10 Thread Oscar Lazo
On 10 ene, 00:56, Jason Grout wrote: > I can't see your private worksheets :). Yeah, see above... -- 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

[sage-devel] Reorganisation of graph methods

2010-01-10 Thread Nathann Cohen
Hello everybody !!! This is a copy of a mail I sent to Robert Miller, who may require a larger audience :-) --- I was thinking about the huge list of functions we have at the moment in the Graph class, and the length of Graph.py. Well, I am at the moment convinced ( if you are no