[sage-devel] Re: new GAP spkg?

2010-01-11 Thread Dima Pasechnik
It turns out that there is an Itanium-only (?) bug in GAP's garbade- collection that breaks SaveWorkspace(), that can be reproduced in GAP 4.4.12. (4.4.10 seems to have identical code in that part, but the bug does not seem to manifest itself there for some reason) so we have to wait for GAP kernel

Re: [sage-devel] server pool problem

2010-01-11 Thread John Cremona
2010/1/11 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:

Re: [sage-devel] Re: new virtualbox image!

2010-01-11 Thread Sébastien Barthélemy
2010/1/9 William Stein : > Are you using this version: > >   http://sage.math.washington.edu/home/wstein/binaries/sage-virtualbox-4.3.zip > > I just made it Thursday using VirtualBox 3.1.2 (I just upgraded) on a > mac with OS X 10.6. I'm not sure when I downloaded it. I downloaded it again then, a

[sage-devel] Question about pickle in python

2010-01-11 Thread François Bissey
Hi all, The work on porting sage to Gentoo has made good progress but we got a bloody nose on the issue of pickle I am referring to the following thread: http://groups.google.com/group/sage- devel/browse_thread/thread/583048dc7d373d6a/735ec83cf845d145 and this ticket: http://trac.sagemath.org

Re: [sage-devel] Re: new GAP spkg?

2010-01-11 Thread Dr. David Kirkby
Dima Pasechnik wrote: It turns out that there is an Itanium-only (?) bug in GAP's garbade- collection that breaks SaveWorkspace(), that can be reproduced in GAP 4.4.12. (4.4.10 seems to have identical code in that part, but the bug does not seem to manifest itself there for some reason) so we hav

[sage-devel] bad rendering of "/" in notebook

2010-01-11 Thread John Cremona
In the notebook (4.3), in either a text cell between Sage cells or in the output of (for example) show(QuadraticField(-1,'i')) I see the the symbol "/" wrongly rendered as "=". So in that example, what I see is Q[i]=(i^2+1) (with ^2 as a superscript). That's not good. I am using fire

Re: [sage-devel] bad rendering of "/" in notebook

2010-01-11 Thread Gonzalo Tornaria
On Mon, Jan 11, 2010 at 10:55 AM, John Cremona wrote: > In the notebook (4.3), in either a text cell between Sage cells or in > the output of (for example) show(QuadraticField(-1,'i')) I see the the > symbol "/" wrongly rendered as "=".  So in that example, what I see is > > > > Q[i]=(i^2+1) > > (

Re: [sage-devel] Re: new GAP spkg?

2010-01-11 Thread David Joyner
On Mon, Jan 11, 2010 at 7:45 AM, Dr. David Kirkby wrote: > Dima Pasechnik wrote: >> >> It turns out that there is an Itanium-only (?) bug in GAP's garbade- >> collection that breaks SaveWorkspace(), that can be reproduced in GAP >> 4.4.12. >> (4.4.10 seems to have identical code in that part, but

[sage-devel] Unsetting MAKE - a better way to do it.

2010-01-11 Thread Dr. David Kirkby
Various bits of SAGE unset 'MAKE', mainly to stop parallel builds. That's a nuisance to someone that might want to use a version of 'make' different from the first one in their path. A simple way around this, is the following bit of code, which preserves the name or path of the make command,

[sage-devel] Re: new GAP spkg?

2010-01-11 Thread Dima Pasechnik
The following patch by Steve Linton appears to cure the Itanium problem in 4.4.12: patch for saveload.c: 704a705 > static Obj ProtectFname; 727a729,731 > /* For some reason itanium GC seems unable to spot fname */ > ProtectFname = fname; > 730a735,736 > ProtectFname = (Obj)0L; > 1071a1078 >

[sage-devel] Re: GAP to sage conversions

2010-01-11 Thread javier
Hi Dima, On Jan 11, 4:14 am, Dima Pasechnik wrote: > I reckon this must be due to Sage representing the finite field of > order p^n > as quotient rings F_p[x]/(f(x)), with f an irreducible polynomial of > degree n. Indeed, in this case to do the coercion to, say F_{p^m}=F_p > [x]/(g(x)), (with n

Re: [sage-devel] bad rendering of "/" in notebook

2010-01-11 Thread John Cremona
Thanks Gonzalo, I'll look into that. John 2010/1/11 Gonzalo Tornaria : > On Mon, Jan 11, 2010 at 10:55 AM, John Cremona wrote: >> In the notebook (4.3), in either a text cell between Sage cells or in >> the output of (for example) show(QuadraticField(-1,'i')) I see the the >> symbol "/" wrongly

Re: [sage-devel] Re: GAP to sage conversions

2010-01-11 Thread John Cremona
I haven't time right now to go through the different finite field types in Sage, but not that Conway polynomials are not known (as far as I know) for all combinations of characteristic and degree, so they give a good solution for some (common) cases but not all. Many of us would dearly like to be

[sage-devel] Re: GAP to sage conversions

2010-01-11 Thread Dima Pasechnik
John, On Jan 11, 10:24 pm, javier wrote: > Hi Dima, > > On Jan 11, 4:14 am, Dima Pasechnik wrote: > > > I reckon this must be due to Sage representing the finite field of > > order p^n > > as quotient rings F_p[x]/(f(x)), with f an irreducible polynomial of > > degree n. Indeed, in this case to

[sage-devel] Re: GAP to sage conversions

2010-01-11 Thread Dima Pasechnik
On Jan 11, 11:04 pm, Dima Pasechnik wrote: > John, oops, I meant Javier > > On Jan 11, 10:24 pm, javier wrote: > > > Hi Dima, > > > On Jan 11, 4:14 am, Dima Pasechnik wrote: > > > > I reckon this must be due to Sage representing the finite field of > > > order p^n > > > as quotient rings F_p[x]

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

2010-01-11 Thread Gonzalo Tornaria
On Sun, Jan 10, 2010 at 10:47 PM, William Stein wrote: > Is the following possible with sh?   Instead of > >   > if [ $? -ne 0 ]; then >    echo "Foo bar argh" >    exit 1 > fi > > we make a function so that we can just write > > > sage-err "Foo bar argh". > (causes script to exit). > > We can en

Re: [sage-devel] Question about pickle in python

2010-01-11 Thread Craig Citro
Hi Francois, > While Carl Witty mentions that python shouldn't be patched directly > as it would make it harder to package sage for distros, Craig Citro > went ahead and did just that. > I couldn't find a ticket or a thread describing the why of this > decision. Basically, the thought was that th

[sage-devel] Re: Implementation of conjugacy classes

2010-01-11 Thread Jason Grout
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). They are just lists of lists of right sizes, with entr

[sage-devel] Re: Reorganisation of graph methods

2010-01-11 Thread Jason Grout
Simon King wrote: I wonder if this is a nice feature, though. Imagine you do "g.i" -- should it really return *all* method names that *contain* (rather than start with) an "i"? This wouldn't be helpful, IMHO. This has been discussed before, and one compromise that seems reasonable to me is:

[sage-devel] Re: bad binomial sum

2010-01-11 Thread andrejv
On Jan 10, 6:15 pm, Harald Schilly wrote: > 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) There is

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

2010-01-11 Thread Andy Somogyi
Hello Essentially, what I'm thinking of a front end is where the entire view is based on a WebKit view, and scripted by python, basically, an an html page but with python in the script tag instead of javascript. This is exactly what Appcelerator (Apache license) does. Here is a little demo of c

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

2010-01-11 Thread ghtdak
On Jan 10, 9:09 pm, William Stein wrote: > 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 should say that my primary interest in having the notebook be > > asynchronous was to interac

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

2010-01-11 Thread William Stein
On Mon, Jan 11, 2010 at 9:37 AM, ghtdak wrote: > > > On Jan 10, 9:09 pm, William Stein wrote: >> 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 should say that my primary inter

Re: [sage-devel] Re: Reorganisation of graph methods

2010-01-11 Thread Robert Bradshaw
On Jan 10, 2010, at 3:15 AM, Simon King wrote: Hi Nathann and Robert! 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*, excep

[sage-devel] Conductors of elliptic curves defined over symbolic number fields.

2010-01-11 Thread Harris Daniels
I have been using sage to calculate conductors of elliptic curves defined over symbolic number fields (as the subject line indicates) and I came across a somewhat strange quirk. I initially was using the E.conductor() method, but as my curves got more complicated the RAM needed to do the calculatio

Re: [sage-devel] Question about pickle in python

2010-01-11 Thread François Bissey
On Tue, 12 Jan 2010 04:53:14 Craig Citro wrote: > Hi Francois, > > > While Carl Witty mentions that python shouldn't be patched directly > > as it would make it harder to package sage for distros, Craig Citro > > went ahead and did just that. > > I couldn't find a ticket or a thread describing the

Re: [sage-devel] Conductors of elliptic curves defined over symbolic number fields.

2010-01-11 Thread William Stein
On Mon, Jan 11, 2010 at 10:04 AM, Harris Daniels wrote: > I have been using sage to calculate conductors of elliptic curves > defined over symbolic number fields (as the subject line indicates) > and I came across a somewhat strange quirk. I initially was using the > E.conductor() method, but as m

Re: [sage-devel] Reorganisation of graph methods

2010-01-11 Thread Robert Bradshaw
On Jan 10, 2010, at 2:49 AM, Nathann Cohen wrote: 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

Re: [sage-devel] Reorganisation of graph methods

2010-01-11 Thread Robert Miller
Nathann Cohen wrote: >> The thing is that we have at the moment something like 210 functions >> in the Graph class. We can not really keep on adding the new ones >> without caring about what it is becoming. In response, Robert Bradshaw wrote: > Why is that too many? I like being able to type g. an

Re: [sage-devel] Conductors of elliptic curves defined over symbolic number fields.

2010-01-11 Thread John Cremona
2010/1/11 William Stein : > On Mon, Jan 11, 2010 at 10:04 AM, Harris Daniels > wrote: >> I have been using sage to calculate conductors of elliptic curves >> defined over symbolic number fields (as the subject line indicates) >> and I came across a somewhat strange quirk. I initially was using the

Re: [sage-devel] Reorganisation of graph methods

2010-01-11 Thread Nick Alexander
On 11-Jan-10, at 10:44 AM, Robert Miller wrote: Nathann Cohen wrote: The thing is that we have at the moment something like 210 functions in the Graph class. We can not really keep on adding the new ones without caring about what it is becoming. In response, Robert Bradshaw wrote: Why is tha

[sage-devel] Re: Reorganisation of graph methods

2010-01-11 Thread Jason Grout
Robert Bradshaw wrote: If it's a question of splitting it up into files, this can already be done, and in a much simpler way. cdef class Graph: from clique import max_clique now if max_clique is a function, then this code will make it an ordinary method as if it were defined here. Wel

Re: [sage-devel] Reorganisation of graph methods

2010-01-11 Thread Craig Citro
>>> Why is that too many? I like being able to type g. and see every >>> single >>> method that is available. If one is interested in trees, >>> g.tree[] >>> gives a smaller subset. Or read the documentation. >> I'm +.9 on this, because I do have one caveat: most of the sage objects with half a mi

Re: [sage-devel] Reorganisation of graph methods

2010-01-11 Thread Robert Bradshaw
On Jan 11, 2010, at 10:49 AM, Nick Alexander wrote: On 11-Jan-10, at 10:44 AM, Robert Miller wrote: Nathann Cohen wrote: The thing is that we have at the moment something like 210 functions in the Graph class. We can not really keep on adding the new ones without caring about what it is be

[sage-devel] Arm cross compilation

2010-01-11 Thread Joshua Herman
Has anyone compiled sage for the arm platform? I want to put it on my google droid. -- 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://groups.g

Re: [sage-devel] Unsetting MAKE - a better way to do it.

2010-01-11 Thread William Stein
On Mon, Jan 11, 2010 at 5:49 AM, Dr. David Kirkby wrote: > Various bits of SAGE unset 'MAKE', mainly to stop parallel builds. That's a > nuisance to someone that might want to use a version of 'make' different > from the first one in their path. > > A simple way around this, is the following bit o

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

2010-01-11 Thread ghtdak
On Jan 11, 9:43 am, William Stein wrote: > On Mon, Jan 11, 2010 at 9:37 AM, ghtdak wrote: > > > On Jan 10, 9:09 pm, William Stein wrote: > >> 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: > > >> >

[sage-devel] Re: Arm cross compilation

2010-01-11 Thread Georg S. Weber
Hi, On 11 Jan., 20:24, Joshua Herman wrote: > Has anyone compiled sage for the arm platform? I want to put it on my google > droid. as of today, the Sage build system does not support cross compilation. However, Carl Witty was able to build (and run!) Sage directly on his T-Mobile G1 android cel

Re: [sage-devel] Arm cross compilation

2010-01-11 Thread Carlo Hamalainen
On Tue, Jan 12, 2010 at 5:24 AM, Joshua Herman wrote: > Has anyone compiled sage for the arm platform? I want to put it on my google > droid. I'm compiling it right now on my SheevaPlug: http://en.wikipedia.org/wiki/SheevaPlug There were a few problems with atlas, blas, fortran, etc, so I'm just

Re: [sage-devel] Unsetting MAKE - a better way to do it.

2010-01-11 Thread Dr. David Kirkby
William Stein wrote: On Mon, Jan 11, 2010 at 5:49 AM, Dr. David Kirkby wrote: Various bits of SAGE unset 'MAKE', mainly to stop parallel builds. That's a nuisance to someone that might want to use a version of 'make' different from the first one in their path. A simple way around this, is the

[sage-devel] Re: Unsetting MAKE - a better way to do it.

2010-01-11 Thread John H Palmieri
On Jan 11, 1:22 pm, "Dr. David Kirkby" wrote: > William Stein wrote: > > On Mon, Jan 11, 2010 at 5:49 AM, Dr. David Kirkby > > wrote: > >> Various bits of SAGE unset 'MAKE', mainly to stop parallel builds. That's a > >> nuisance to someone that might want to use a version of 'make' different > >>

[sage-devel] Re: Unsetting MAKE - a better way to do it.

2010-01-11 Thread Georg S. Weber
> Cool.  Instead of suggesting people use bits of code like this in > their spkg-install's, why don't we make a single *sage sh library* > that gets used.  It could start as a script > >     local/bin/sage-spkg-lib > > that gets sourced before spkg-install gets sourced.  It could contain > at leas

Re: [sage-devel] Arm cross compilation

2010-01-11 Thread Joshua Herman
If you could give me a binary that would be great! On Mon, Jan 11, 2010 at 2:35 PM, Carlo Hamalainen wrote: > On Tue, Jan 12, 2010 at 5:24 AM, Joshua Herman > wrote: >> Has anyone compiled sage for the arm platform? I want to put it on my google >> droid. > > I'm compiling it right now on my Sh

[sage-devel] CPPFLAGS

2010-01-11 Thread Dr. David Kirkby
Many spkg-install scripts have something like this: CPPFLAGS="$CPPFLAGS -I$SAGE_LOCAL/include" or sometimes the I$SAGE_LOCAL/include is added onto CFLAGS, though of course that only works when compiling C, not C++. Hence putting onto CPPFLAGS is preferable. Would it be 100% safe to add -I$SA

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

2010-01-11 Thread Alejandro Serrano
I started trying to use Notebook and showing it into a QtWebKit view, but I decided to change that in the approach I did for a desktop Sage app for these reasons: - First of all, the Notebook is very very big in memory. And what we really need is not a full Twisted server, just a way to talk to Sag

Re: [sage-devel] Re: Unsetting MAKE - a better way to do it.

2010-01-11 Thread Dr. David Kirkby
John H Palmieri wrote: On Jan 11, 1:22 pm, "Dr. David Kirkby" wrote: William Stein wrote: On Mon, Jan 11, 2010 at 5:49 AM, Dr. David Kirkby wrote: Various bits of SAGE unset 'MAKE', mainly to stop parallel builds. That's a nuisance to someone that might want to use a version of 'make' differ

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

2010-01-11 Thread Alex Clemesha
> Over this weekend, I was thinking over some simpler ideas, such as just > packaging up sage into a single .app, and with a script that starts the web > server, and a WebKit view embedded in a Cocoa app does the drawing. But then > I started reading some more about the new capabilities of HTML

Re: [sage-devel] Re: Unsetting MAKE - a better way to do it.

2010-01-11 Thread Craig Citro
> Having thought about it more, there could be a problem with my original > approach. IF someone typed > > $ export MAKE=/my/favorite/make -j 200 > $ make > > then my approach, and your suggestion for sage-env would work. > You've also got trouble if they do $ export MAKE='/my/favorite/path with

[sage-devel] 4.3.1.alpha1 fails (/hangs?) building maxima on geom.math

2010-01-11 Thread Robert Miller
I started a build days ago, and when I came back, I saw this: make[4]: Leaving directory `/space/rlm/sage-4.3.1.alpha1/spkg/build/ maxima-5.20.1/src' make[3]: Leaving directory `/space/rlm/sage-4.3.1.alpha1/spkg/build/ maxima-5.20.1/src' make[2]: Leaving directory `/space/rlm/sage-4.3.1.alpha1/spk

Re: [sage-devel] 4.3.1.alpha1 fails (/hangs?) building maxima on geom.math

2010-01-11 Thread William Stein
On Mon, Jan 11, 2010 at 2:37 PM, Robert Miller wrote: > I started a build days ago, and when I came back, I saw this: > > make[4]: Leaving directory `/space/rlm/sage-4.3.1.alpha1/spkg/build/ > maxima-5.20.1/src' > make[3]: Leaving directory `/space/rlm/sage-4.3.1.alpha1/spkg/build/ > maxima-5.20.1

Re: [sage-devel] 4.3.1.alpha1 fails (/hangs?) building maxima on geom.math

2010-01-11 Thread Robert Miller
>> The build process seems to have frozen here. > > > Try again. > >  -- William I did try make-ing the same install again, and it hanged at the same place. -- Robert L. Miller http://www.rlmiller.org/ -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from th

Re: [sage-devel] Re: Unsetting MAKE - a better way to do it.

2010-01-11 Thread John Cremona
Googling found me this: http://www.phwinfo.com/forum/comp-unix-shell/392108-strip-path-get-filename.html which appears to be a response to one Dave Kirby. basename does the trick, doesn't it? John 2010/1/11 Craig Citro : >> Having thought about it more, there could be a problem with my original

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

2010-01-11 Thread ghtdak
On Jan 11, 2:18 pm, Alex Clemesha wrote: > > Over this weekend, I was thinking over some simpler ideas, such as just > > packaging up sage into a single .app, and with a script that starts the web > > server, and a WebKit view embedded in a Cocoa app does the drawing. But > > then I started r

Re: [sage-devel] Re: Unsetting MAKE - a better way to do it.

2010-01-11 Thread Craig Citro
> basename does the trick, doesn't it? > Yep, seems like exactly what we want. The man page also tells me about dirname, which seems to be the complementary utility we'd want in some situations. -cc -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this g

[sage-devel] Re: CPPFLAGS

2010-01-11 Thread Jaap Spies
Dr. David Kirkby wrote: Many spkg-install scripts have something like this: CPPFLAGS="$CPPFLAGS -I$SAGE_LOCAL/include" or sometimes the I$SAGE_LOCAL/include is added onto CFLAGS, though of course that only works when compiling C, not C++. Hence putting onto CPPFLAGS is preferable. Would it be

Re: [sage-devel] Re: Unsetting MAKE - a better way to do it.

2010-01-11 Thread Willem Jan Palenstijn
On Mon, Jan 11, 2010 at 02:21:13PM -0800, Craig Citro wrote: > > Having thought about it more, there could be a problem with my original > > approach. IF someone typed > > > > $ export MAKE=/my/favorite/make -j 200 > > $ make > > > > then my approach, and your suggestion for sage-env would work. >

[sage-devel] Re: GAP to sage conversions

2010-01-11 Thread javier
Dima, On Jan 11, 3:04 pm, Dima Pasechnik wrote: > no, from GAP's point of view, Z(2^4)^5 is an element of GF(4). > And thus b is such an element, too... then from the "gap-to-sage" point of view nothing else can be done. A coercion between finite fields is needed before this method can work in a

Re: [sage-devel] Re: GAP to sage conversions

2010-01-11 Thread William Stein
On Mon, Jan 11, 2010 at 4:16 PM, javier wrote: > Dima, > > On Jan 11, 3:04 pm, Dima Pasechnik wrote: >> no, from GAP's point of view, Z(2^4)^5 is an element of GF(4). >> And thus b is such an element, too... > > then from the "gap-to-sage" point of view nothing else can be done. A > coercion betw

Re: [sage-devel] Re: CPPFLAGS

2010-01-11 Thread David Kirkby
2010/1/11 Jaap Spies : > Dr. David Kirkby wrote: >> >> Many spkg-install scripts have something like this: >> >> CPPFLAGS="$CPPFLAGS -I$SAGE_LOCAL/include" >> >> or sometimes the I$SAGE_LOCAL/include is added onto CFLAGS, though of >> course that only works when compiling C, not C++. Hence putting

Re: [sage-devel] Re: Unsetting MAKE - a better way to do it.

2010-01-11 Thread David Kirkby
2010/1/11 Craig Citro : > You've also got trouble if they do > > $ export MAKE='/my/favorite/path with spaces/make -j 100' > > because that awk command just prints the first space-delimited token. > The only way I can think of to get around that would be to use a > regexp to take everything after

[sage-devel] Re: GAP to sage conversions

2010-01-11 Thread javier
Hi William, On Jan 12, 12:24 am, William Stein wrote: > Dumb question.  There is code in Sage already to convert from GAP's > GF(p) (or GF(q)) to Sage's: you are completely right. Since at the beginning I tried to do something like sage: a = gap("Z(7)") sage: a.sage() and that didn't work I as

Re: [sage-devel] Re: GAP to sage conversions

2010-01-11 Thread William Stein
On Mon, Jan 11, 2010 at 4:46 PM, javier wrote: > Hi William, > > On Jan 12, 12:24 am, William Stein wrote: >> Dumb question.  There is code in Sage already to convert from GAP's >> GF(p) (or GF(q)) to Sage's: > > you are completely right. Since at the beginning I tried to do > something like > >

[sage-devel] Re: GAP to sage conversions

2010-01-11 Thread javier
On Jan 12, 12:47 am, William Stein wrote: > Isn't the case of non-prime fields also already in Sage?  It was in my > example. The __call__ function for a non-prime field yes, was already defined. What wasn't was the conversion of a gap non-prime field into a sage prime field. Something like sag

Re: [sage-devel] Re: Unsetting MAKE - a better way to do it.

2010-01-11 Thread David Kirkby
2010/1/11 John Cremona : > Googling found me this: > http://www.phwinfo.com/forum/comp-unix-shell/392108-strip-path-get-filename.html >  which appears to be a response to one Dave Kirby. > > basename does the trick, doesn't it? > > John No, basename is not what is wanted. The 'basename' of /usr/lo

Re: [sage-devel] Unsetting MAKE - a better way to do it.

2010-01-11 Thread Gonzalo Tornaria
On Mon, Jan 11, 2010 at 5:42 PM, William Stein wrote: > Cool.  Instead of suggesting people use bits of code like this in > their spkg-install's, why don't we make a single *sage sh library* > that gets used.  It could start as a script > >    local/bin/sage-spkg-lib > > that gets sourced before s

[sage-devel] Permission denied: 'cython'

2010-01-11 Thread Bill Page
I installed VirtualBox 3.1.2 and the Sage 4.3 virtual machine on a new Windows 7 dual processor netbook. Everything went fine and it seems fully functional - nice. Then I decided to install the FriCAS optional package. I went to sage:prompt mode and did sage -i fricas-1.0.8 everything seemed to

[sage-devel] Problems with sage on core i7 (nehalem)

2010-01-11 Thread Gonzalo Tornaria
As posted before, I am getting (consistent) test failures when running sage doctests on a core i7. I've been doing some more experiments and found some more interesting things about this. I'm using two different boxes: core2: Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz family=6 model=23 ste

[sage-devel] Re: Problems with sage on core i7 (nehalem)

2010-01-11 Thread Gonzalo Tornaria
On Tue, Jan 12, 2010 at 1:29 AM, Gonzalo Tornaria wrote: > Only suspicious flag I see is sse4_2, since both have sse4_1 (note > that the old 65nm core2 don't have sse4_1 also). At least mpir uses "popcnt" on nehalem, which is available for sse4_2 only. So, the sse4_2 flag should be added to the s

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

2010-01-11 Thread Gonzalo Tornaria
On Sun, Jan 10, 2010 at 8:02 PM, Gonzalo Tornaria wrote: > cpu = 2 x quad core xeon E5520 (nehalem/i7) > os = debian 5.0/lenny (64 bit) ... >sage -t devel/sage/sage/symbolic/expression.pyx # 6 doctests failed >        sage -t  devel/sage/sage/numerical/optimize.py # 6 doctests failed Not

Re: [sage-devel] Permission denied: 'cython'

2010-01-11 Thread William Stein
On Mon, Jan 11, 2010 at 7:21 PM, Bill Page wrote: > I installed VirtualBox 3.1.2 and the Sage 4.3 virtual machine on a new > Windows 7 dual processor netbook. Everything went fine and it seems > fully functional - nice. Then I decided to install the FriCAS optional > package. I went to sage:prompt

[sage-devel] zlib. Failure to configure or install is fatal, but building is not !!

2010-01-11 Thread Dr. David Kirkby
I was looking at zlib-1.2.3.p5 and thought this was rather odd in spkg-install. * If zlib fails to configure properly, we exit with an error. * If it fails to build using 'make', we give a warning, say this may not be fatal, but do not exit. * If zlib fails to install, we exit with an erro

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

2010-01-11 Thread Gonzalo Tornaria
On Tue, Jan 12, 2010 at 2:24 AM, Gonzalo Tornaria wrote: > On Sun, Jan 10, 2010 at 8:02 PM, Gonzalo Tornaria > wrote: >> cpu = 2 x quad core xeon E5520 (nehalem/i7) >> os = debian 5.0/lenny (64 bit) > ... >>        sage -t  devel/sage/sage/symbolic/expression.pyx # 6 doctests failed >>        sag

Re: [sage-devel] Re: Problems with sage on core i7 (nehalem)

2010-01-11 Thread William Stein
On Mon, Jan 11, 2010 at 7:44 PM, Gonzalo Tornaria wrote: > On Tue, Jan 12, 2010 at 1:29 AM, Gonzalo Tornaria > wrote: >> Only suspicious flag I see is sse4_2, since both have sse4_1 (note >> that the old 65nm core2 don't have sse4_1 also). > > At least mpir uses "popcnt" on nehalem, which is avai

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

2010-01-11 Thread Pat LeSmithe
On 01/11/2010 09:25 PM, Gonzalo Tornaria wrote: > PS: Can somebody explain why rebuilding just the scipy spkg triggers > rebuilding the whole damn documentation, which takes way longer than > rebuilding scipy (and it's clearly unnecessary). Doesn't this I'm not sure that it's relevant, but near th

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

2010-01-11 Thread William Stein
On Mon, Jan 11, 2010 at 10:04 PM, Pat LeSmithe wrote: > On 01/11/2010 09:25 PM, Gonzalo Tornaria wrote: >> PS: Can somebody explain why rebuilding just the scipy spkg triggers >> rebuilding the whole damn documentation, which takes way longer than >> rebuilding scipy (and it's clearly unnecessary)

[sage-devel] broken show for unevaluated integrals

2010-01-11 Thread ma...@mendelu.cz
Dear sage-devel the following (definite) integral is not evaluated by maxima and show () command should return the same unevaluated integral in TeX notation. I think this was the case in previous versions. On Sage 4.3. I get th following input: integrate(1/(1+sqrt(x)),x,0,1).show() output: \int