Re: [sage-devel] Re: MPC: Complex arithmetic with correct rounding

2010-01-06 Thread Robert Bradshaw
On Jan 4, 2010, at 6:29 AM, YannLC wrote: On 4 jan, 15:06, Jason Grout wrote: I'm curious where you see this eventually going? (1) MPComplexField replaces ComplexField (2) MPComplexField provides an alternative to ComplexField (this is what you're proposing right now, right?) Yes, even

Re: [sage-devel] Compilation error for alpha0

2010-01-06 Thread Dr. David Kirkby
Robert Miller wrote: It does look like "descent_two_isogeny" is what it is failing to compile, but I really can't help without more information. Is there a way to get gcc to print out why it's failing? It occurs to me that this depends on ratpoints, which has some issues compiling with earlier v

Re: [sage-devel] Something up with descent_two_isogeny.pyx ??

2010-01-06 Thread Dr. David Kirkby
Robert Miller wrote: On Wed, Jan 6, 2010 at 11:08 PM, Dr. David Kirkby wrote: I noticed a problem building sage 4.3.1.alpha1 on 't2' which I think is new. GCC is saying the flags are incorrect when compiling sage/schemes/elliptic_curves/descent_two_isogeny.c Is this related? http://groups.g

Re: [sage-devel] Re: sage 4.3 compile error Unknown compiler flag: --incref-local-binop

2010-01-06 Thread Robert Bradshaw
On Jan 5, 2010, at 2:13 AM, Georg S. Weber wrote: Hmmm, I looked again through the scripts; perhaps it's worth trying directly ./sage -sh cd spkg ./install one more time, since the download of the 4.3 stuff seems to have been successful. If that (still) does not work, I'm running out of ide

Re: [sage-devel] Re: generating a list of lambda functions

2010-01-06 Thread Robert Bradshaw
On Jan 5, 2010, at 1:47 PM, Jason Grout wrote: Dag Sverre Seljebotn wrote: Jason Grout wrote: I'm trying to generate a list of functions where each function returns its place in a list. Here is my code: cc=[(lambda: x) for x in [1..2]] However, I have: cc[0]() returns 2 (but I want it to

Re: [sage-devel] Something up with descent_two_isogeny.pyx ??

2010-01-06 Thread Robert Miller
On Wed, Jan 6, 2010 at 11:08 PM, Dr. David Kirkby wrote: > I noticed a problem building sage 4.3.1.alpha1 on 't2' which I think is new. > GCC is saying the flags are incorrect when compiling > > sage/schemes/elliptic_curves/descent_two_isogeny.c Is this related? http://groups.google.com/group/sa

[sage-devel] Something up with descent_two_isogeny.pyx ??

2010-01-06 Thread Dr. David Kirkby
I noticed a problem building sage 4.3.1.alpha1 on 't2' which I think is new. GCC is saying the flags are incorrect when compiling sage/schemes/elliptic_curves/descent_two_isogeny.c (see below). I was convinced that http://trac.sagemath.org/sage_trac/ticket/6595 would have allowed Sage to buil

Re: [sage-devel] Re: Fraction fields (multiplication, in particular)

2010-01-06 Thread Robert Bradshaw
On Jan 5, 2010, at 6:38 AM, Sebastian Pancratz wrote: For the purpose of making this a small and easy update, I think it would be nice to not introduce new flags, provided one can get away with it. I think the following policy might be OK: - For exact rings with a GCD implementation, all user

Re: [sage-devel] computing pi

2010-01-06 Thread Robert Bradshaw
On Jan 6, 2010, at 4:37 PM, Florent Hivert wrote: Hi there, According to this: http://news.bbc.co.uk/1/hi/technology/8442255.stm someone has just computed pi to 2.7 trillion digits on a "desktop computer". The article does not mention software. How well would Sage do? I don't know o

[sage-devel] numpy problem - anyone got an idea what it might be ??

2010-01-06 Thread Dr. David Kirkby
I get the following problem when trying to make a 64-bit build of Sage on Open Solaris (Intel Xeon processor). I would add the build of ATLAS failed, so I had to just skip that. numpy-1.3.0.p2/src/MANIFEST.in numpy-1.3.0.p2/.hgtags Finished extraction **

[sage-devel] Octave and Sage

2010-01-06 Thread Dr. David Kirkby
Hi, you are probably aware of the GPL'ed Sage mathematics software http://www.sagemath.org/ which has a mission of creating a viable free open source alternative to Magma, Maple, Mathematica and Matlab. What you you may not realise is that Sage has an interface to Octave, which one selects

[sage-devel] Re: graph development

2010-01-06 Thread kcrisman
On Jan 6, 3:27 pm, David Joyner wrote: > At some point I want to implement several graph-theoretic constructions > for work I hope to get funded for over the summer, so I will wait > until this patch is incorporated. They are > > (1) the Havel-Hakimi construction (given a graphical degree sequen

[sage-devel] sage-env - PLEASE review.

2010-01-06 Thread Dr. David Kirkby
I've put a LOT of working in trying to update 'sage-env' which is a little script run right at the start of the Sage build process. (I actually created some of it with William back in 2005, but have thought of many improvements since then). It needs reviewing, and I'd appreciate if a few peop

Re: [sage-devel] computing pi

2010-01-06 Thread Florent Hivert
Hi there, > According to this: > > http://news.bbc.co.uk/1/hi/technology/8442255.stm > > someone has just computed pi to 2.7 trillion digits on a "desktop > computer". The article does not mention software. > > How well would Sage do? I once tried to find the shortest program which comp

Re: [sage-devel] graph development

2010-01-06 Thread David Joyner
On Wed, Jan 6, 2010 at 4:06 PM, Minh Nguyen wrote: > Hi David, > > On Thu, Jan 7, 2010 at 7:27 AM, David Joyner wrote: >> At some point I want to implement several graph-theoretic constructions >> for work I hope to get funded for over the summer, so I will wait >> until this patch is incorporate

Re: [sage-devel] Re: updates to script for automatically generating release notes

2010-01-06 Thread Minh Nguyen
Hi kcrisman, On Wed, Jan 6, 2010 at 2:05 PM, kcrisman wrote: > I would recommend that we still obtain Authors and Reviewers (that is, > contributors) for "other tickets closed", which are often nontrivial > spkg updates or contributions to sagenb or sage that didn't happen to > get the merged

[sage-devel] sage_fortran and SAGE64

2010-01-06 Thread Dr. David Kirkby
Whenever sage_fortran builds an executable on my Open Solaris system, it is doing so as 32-bit. As far as I am aware, the problems with other packages building 32-bit objects have all been resolved or can be worked around by setting environment variables (like CFLAGS=-m64, CXXFLAGS=-m64 etc).

Re: [sage-devel] graph development

2010-01-06 Thread Minh Nguyen
Hi David, On Thu, Jan 7, 2010 at 7:27 AM, David Joyner wrote: > At some point I want to implement several graph-theoretic constructions > for work I hope to get funded for over the summer, so I will wait > until this patch is incorporated. They are > > > (1) the Havel-Hakimi construction (given a

Re: [sage-devel] sage -c slow

2010-01-06 Thread Ivan Andrus
On Jan 6, 2010, at 8:50 PM, William Stein wrote: > On Wed, Jan 6, 2010 at 11:21 AM, Ivan Andrus wrote: >> I recently decided to make some OS X services which use sage e.g. to >> simplify an expression. So that I can select some text, and simplify it in >> place. This is ridiculously easy to d

[sage-devel] Re: spherical plot

2010-01-06 Thread Jason Grout
Oscar Lazo wrote: On 6 ene, 12:23, Jason Grout wrote: That was an intentionally simple example to illustrate the problem. Here's something that is more nontrivial: def f(x,y): if x>pi: return y else: return -y spherical_plot3d(f, (x,0,2*pi), (y,0,pi)) I have no idea how

[sage-devel] Backslashes in docstring about latex use

2010-01-06 Thread Rob Beezer
In the docstring for latex.add_to_preamble() there is the doctest line: sage: latex.add_to_preamble("\\usepackage{xypic}") This is correct and useful at the Sage command line, but in the notebook when Sphinx-icated the escaped backslash displays as a single backslash, which would look sensible to

Re: [sage-devel] graph development

2010-01-06 Thread David Joyner
At some point I want to implement several graph-theoretic constructions for work I hope to get funded for over the summer, so I will wait until this patch is incorporated. They are (1) the Havel-Hakimi construction (given a graphical degree sequence, construct a graph having those degrees) (2) ri

Re: [sage-devel] about sagenb-xx.spkg and translations

2010-01-06 Thread Tim Joseph Dumol
On Tue, Jan 5, 2010 at 2:36 PM, Dan Drake wrote: > On Mon, 04 Jan 2010 at 12:43AM +0800, Tim Joseph Dumol wrote: > > Changes to the notebook should be made to the sagenb spkg found at > > http://nb.sagemath.org, and updated to the latest version at the > > repository (hg pull http://sage.math.was

[sage-devel] Re: spherical plot

2010-01-06 Thread Oscar Lazo
On 6 ene, 12:23, Jason Grout wrote: > That was an intentionally simple example to illustrate the problem. > Here's something that is more nontrivial: > def f(x,y): >     if x>pi: >        return y >     else: >        return -y > > spherical_plot3d(f, (x,0,2*pi), (y,0,pi)) I have no idea how to m

Re: [sage-devel] bug in qqbar.py

2010-01-06 Thread John Cremona
2010/1/6 William Stein : > Thanks. This is now http://trac.sagemath.org/sage_trac/ticket/7859 > > On Wed, Jan 6, 2010 at 11:18 AM, Håkan Granath > wrote: >> The code >> >> R. = AA[] >> v1 = QQbar.polynomial_root(AA.common_polynomial(x^4 + 3*x^2 + 1),\ >>  CIF(RIF(-RR(2.7018838812806391e-55), RR(2.

[sage-devel] Re: sage -c slow

2010-01-06 Thread Jason Grout
Ivan Andrus wrote: I recently decided to make some OS X services which use sage e.g. to simplify an expression. So that I can select some text, and simplify it in place. This is ridiculously easy to do with Automator and sage -c, but the problem is that it's unbearably slow. Part of it may be A

Re: [sage-devel] sage -c slow

2010-01-06 Thread William Stein
On Wed, Jan 6, 2010 at 11:21 AM, Ivan Andrus wrote: > I recently decided to make some OS X services which use sage e.g. to simplify > an expression.  So that I can select some text, and simplify it in place.   > This is ridiculously easy to do with Automator and sage -c, but the problem > is tha

Re: [sage-devel] bug in qqbar.py

2010-01-06 Thread William Stein
Thanks. This is now http://trac.sagemath.org/sage_trac/ticket/7859 On Wed, Jan 6, 2010 at 11:18 AM, Håkan Granath wrote: > The code > > R. = AA[] > v1 = QQbar.polynomial_root(AA.common_polynomial(x^4 + 3*x^2 + 1),\ >  CIF(RIF(-RR(2.7018838812806391e-55), RR(2.5616917931009833e-55)),\ >  RIF(RR(1.

[sage-devel] Re: computing pi

2010-01-06 Thread Bill Hart
I think they needed about 7.2 TB of disk space. It would be possible to adapt the theta code we used for the trillion triangles problem to do this computation. But it would be a massive job. At present there is only multiplication, let alone square root. Bill. On Jan 6, 6:58 pm, Tim Joseph Dumol

[sage-devel] sage -c slow

2010-01-06 Thread Ivan Andrus
I recently decided to make some OS X services which use sage e.g. to simplify an expression. So that I can select some text, and simplify it in place. This is ridiculously easy to do with Automator and sage -c, but the problem is that it's unbearably slow. Part of it may be Automator, but if

[sage-devel] bug in qqbar.py

2010-01-06 Thread Håkan Granath
The code R. = AA[] v1 = QQbar.polynomial_root(AA.common_polynomial(x^4 + 3*x^2 + 1),\ CIF(RIF(-RR(2.7018838812806391e-55), RR(2.5616917931009833e-55)),\ RIF(RR(1.6180339887498947), RR(1.6180339887498949 v2 = (2/3*v1^3 + 2/3*v1^2 + 4/3*v1 + 1).norm() sqrt(v2 - 1) yields the error NameErro

Re: [sage-devel] computing pi

2010-01-06 Thread Tim Joseph Dumol
There's more information here: http://bellard.org/pi/pi2700e9/index.html On Wed, Jan 6, 2010 at 11:39 PM, Dr. David Kirkby wrote: > John Cremona wrote: > >> According to this: >> >> http://news.bbc.co.uk/1/hi/technology/8442255.stm >> >> someone has just computed pi to 2.7 trillion digits on a "d

[sage-devel] Re: graph development

2010-01-06 Thread Jason Grout
Robert Miller wrote: Hello, The long awaited patches to switch to using Cython-based graphs by default and to refector the way too long files in sage/graphs is here! If you plan on doing any development on graphs, please be aware of trac ticket #7634. Any work that is not based on the patches th

[sage-devel] Re: spherical plot

2010-01-06 Thread Jason Grout
Oscar Lazo wrote: On 6 ene, 01:16, Jason Grout wrote: I've made some comments athttp://trac.sagemath.org/sage_trac/ticket/7850 I saw your comments (i'll edit the ticket when i'm sure how many of those there should be). 1. To be consistent with the plotting functions, it would also need to s

[sage-devel] Re: Fraction fields (multiplication, in particular)

2010-01-06 Thread Sebastian Pancratz
Dear all, I've now attached a patch for this to track ticket #7857. This includes using the Henrici (or Henrici--Brown) algorithms for the arithmetic operations +, -, *, and /, as well as for computing the (univariate) derivative in the case where applicable. If someone could please review this,

[sage-devel] Re: spherical plot

2010-01-06 Thread Oscar Lazo
On 6 ene, 01:16, Jason Grout wrote: > I've made some comments athttp://trac.sagemath.org/sage_trac/ticket/7850 I saw your comments (i'll edit the ticket when i'm sure how many of those there should be). > 1. To be consistent with the plotting functions, it would also need to > support something

Re: [sage-devel] computing pi

2010-01-06 Thread solarg
On 01/ 6/10 04:39 PM, Dr. David Kirkby wrote: John Cremona wrote: According to this: http://news.bbc.co.uk/1/hi/technology/8442255.stm someone has just computed pi to 2.7 trillion digits on a "desktop computer". The article does not mention software. How well would Sage do? John For somet

Re: [sage-devel] computing pi

2010-01-06 Thread Dr. David Kirkby
John Cremona wrote: According to this: http://news.bbc.co.uk/1/hi/technology/8442255.stm someone has just computed pi to 2.7 trillion digits on a "desktop computer". The article does not mention software. How well would Sage do? John For something on the BBC web site, that is amazingly sho

Re: [sage-devel] Re: Sage 4.3.1.alpha1 released

2010-01-06 Thread John Cremona
On my 64-bit ubuntu I built 4.3.1.alpha1 from scratch and have just one failure: sage -t "devel/sage/sage/misc/sagedoc.py" ** File "/home/jec/sage-4.3.1.alpha1/devel/sage/sage/misc/sagedoc.py", line 897: sage: browse_sage_doc

Re: [sage-devel] computing pi

2010-01-06 Thread Paul Zimmermann
Dear all, > Date: Wed, 6 Jan 2010 06:51:33 -0800 > From: William Stein > > On Wed, Jan 6, 2010 at 5:58 AM, John Cremona wrote: > > According to this: > > > > http://news.bbc.co.uk/1/hi/technology/8442255.stm > > > > someone has just computed pi to 2.7 trillion digits on a "desktop > > co

Re: [sage-devel] computing pi

2010-01-06 Thread William Stein
On Wed, Jan 6, 2010 at 5:58 AM, John Cremona wrote: > According to this: > > http://news.bbc.co.uk/1/hi/technology/8442255.stm > > someone has just computed pi to 2.7 trillion digits on a "desktop > computer".  The article does not mention software. > > How well would Sage do? Sage just uses MPFR

[sage-devel] graph development

2010-01-06 Thread Robert Miller
Hello, The long awaited patches to switch to using Cython-based graphs by default and to refector the way too long files in sage/graphs is here! If you plan on doing any development on graphs, please be aware of trac ticket #7634. Any work that is not based on the patches there will need to be reb

[sage-devel] computing pi

2010-01-06 Thread John Cremona
According to this: http://news.bbc.co.uk/1/hi/technology/8442255.stm someone has just computed pi to 2.7 trillion digits on a "desktop computer". The article does not mention software. How well would Sage do? John -- To post to this group, send an email to sage-devel@googlegroups.com To unsub

Re: [sage-devel] ATLAS problem on Open Solaris

2010-01-06 Thread solarg
On 01/ 6/10 12:31 PM, Dr. David Kirkby wrote: Unfortunately, neither ATL_dnrm2_xp0yp0aXbX.c or /var/tmp//cctray_x.s actually exist on the machine, so its hard to file a useful bug report, when the temporary files which showed the error have gone. but did you try to restart the make command

[sage-devel] Re: Flint - mixing 32 and 64-bit

2010-01-06 Thread Dr. David Kirkby
Bill Hart wrote: Assuming FLINT_CC and FLINT_CPP are set correctly I don't see how it can go wrong. Bill. Bill, Looking in the *original* flint makefile I see this: library: $(FLINT_LIB) libflint.dylib: $(FLINTOBJ) $(CC) -single_module -f

[sage-devel] short review : speeding up Linear Programming with a cheap trick

2010-01-06 Thread Nathann Cohen
Hello everybody !!! There is a patch meant to speed up the class MixedIntegerLinearProgram with a cheap trick : instead of using Sage's symbolic expressions to represent Linear Functions, I wrote a small class doing just that, inside of the file defining Linear Programs This patch only adds th

Re: [sage-devel] ATLAS problem on Open Solaris

2010-01-06 Thread Dr. David Kirkby
solarg wrote: On 01/ 6/10 03:24 AM, Dr. David Kirkby wrote: It's gone 2 AM here, and I'm not going to go into a deep debugging session, but if anyone has any ideas about the error below, let me know. Systems is a Sun Ultra 27, 3.333 GHz Xeon. Open Solaris 06/2009 gcc 4.4.2, configured to use t

Re: [sage-devel] Pari builds 64-bit objects, but then links as 32-bit.

2010-01-06 Thread John Cremona
I suggest that you contact the pari developers about this. they may not have access to a Solaris machine, in which case it would be harder for them to help, but it is worth a try. email Karim Belabas and/or Bill Alombert. John 2010/1/6 Dr. David Kirkby : > Craig Citro wrote: >>> >>> Any ideas??