[sage-support] Re: Iterators in compiled code?

2009-01-31 Thread Alasdair
Well I tried v = iter(Permutations(range(n))) and the code compiled fine - but still ran slow. To test the Petersen graph (10 vertices), the compiled code took a wall time of 524.23 s, and the uncompiled code, using v=(p for p in Permutations(range(n))) took a wall time of 492.22 s. The

[sage-support] Re: ILLEGAL INSTRUCTION sse4_pni

2009-01-31 Thread littlemathteacher
OK. Let me try to be precise. The information I gave in my post was not correct. I have installed sage-3.2.2-ubuntu32bit-intel-i686-Linux and I receive the error message ... ILLEGAL INSTRUCTION ... pni but however this version seems to be running well. In order to try the next version I have

[sage-support] Wrong plot in optimisation problem - not tangent

2009-01-31 Thread Paolo Crosetto
Hi everyone, I run into a very strange problem, that looks like critical to me. Basically, I plot two functions that I know must be tangent at a given point, and they are not. First, the code: x,y=var('x,y') utility=y*x^2 budget = 24-x cp=contour_plot(utility,(x,0,24),(y,

[sage-support] Re: Wrong plot in optimisation problem - not tangent

2009-01-31 Thread David Joyner
I don't know anything about your economics problem but when I typed cp=contour_plot(utility,(x,0,24),(y, 0,24),fill=False,cmap='cool',contours=(100,1000,2048,2700,3500),plot_points=200) instead, I definitely got a different plot. Can you try that (or even with a higher value) and see if it is

[sage-support] Re: Wrong plot in optimisation problem - not tangent

2009-01-31 Thread William Stein
On Sat, Jan 31, 2009 at 7:08 AM, David Joyner wdjoy...@gmail.com wrote: I don't know anything about your economics problem but when I typed cp=contour_plot(utility,(x,0,24),(y, 0,24),fill=False,cmap='cool',contours=(100,1000,2048,2700,3500),plot_points=200) instead, I definitely got a

[sage-support] Re: ILLEGAL INSTRUCTION sse4_pni

2009-01-31 Thread William Stein
On Sat, Jan 31, 2009 at 6:24 AM, littlemathteacher relational...@gmail.com wrote: OK. Let me try to be precise. The information I gave in my post was not correct. I have installed sage-3.2.2-ubuntu32bit-intel-i686-Linux and I receive the error message ... ILLEGAL INSTRUCTION ... pni but

[sage-support] Re: Wrong plot in optimisation problem - not tangent

2009-01-31 Thread Paolo Crosetto
David, William, yes, by increasing plot_points it goes as it should. Thanks, and I should have thought of it! I second the idea of increaisng the default plot-points, at least to 100. On my not so recent intel duo it took less than a second with 200. Thanks, P

[sage-support] Memory Error?

2009-01-31 Thread Rolandb
Hi, I received first a MemoryError, and later on Sage reported: /usr/local/sage/local/bin/sage-sage: line 358: 10172 Killed python $@ {{{id=59| uitkomst1=[] uitkomst2=[] eind=int((10^9+2)/(2*sqrt(3))) print eind for y in srange(1,eind): test1=is_square(3*y^2+1,True)

[sage-support] Re: Memory Error?

2009-01-31 Thread William Stein
On Sat, Jan 31, 2009 at 11:15 AM, Rolandb rola...@planet.nl wrote: Hi, I received first a MemoryError, and later on Sage reported: That means that Sage ran out of memory. It's not a bug -- it's just a limitation of your computer. /usr/local/sage/local/bin/sage-sage: line 358: 10172

[sage-support] Re: Memory Error?

2009-01-31 Thread mabshoff
On Jan 31, 11:17 am, William Stein wst...@gmail.com wrote: On Sat, Jan 31, 2009 at 11:15 AM, Rolandb rola...@planet.nl wrote: Hi, I received first a MemoryError, and later on Sage reported: That means that Sage ran out of memory.  It's not a bug -- it's just a limitation of your

[sage-support] Re: Memory Error?

2009-01-31 Thread William Stein
On Sat, Jan 31, 2009 at 11:26 AM, mabshoff michael.absh...@mathematik.uni-dortmund.de wrote: On Jan 31, 11:17 am, William Stein wst...@gmail.com wrote: On Sat, Jan 31, 2009 at 11:15 AM, Rolandb rola...@planet.nl wrote: Hi, I received first a MemoryError, and later on Sage reported:

[sage-support] Re: Memory Error?

2009-01-31 Thread William Stein
On Sat, Jan 31, 2009 at 11:40 AM, William Stein wst...@gmail.com wrote: On Sat, Jan 31, 2009 at 11:26 AM, mabshoff michael.absh...@mathematik.uni-dortmund.de wrote: On Jan 31, 11:17 am, William Stein wst...@gmail.com wrote: On Sat, Jan 31, 2009 at 11:15 AM, Rolandb rola...@planet.nl wrote:

[sage-support] large sparse integer matrices

2009-01-31 Thread John H Palmieri
I'm having some issues with integer matrices. I have a matrix mat: sage: mat 891 x 1559 sparse matrix over Integer Ring sage: mat.rank() # this takes a long time sage.bin(75404,0xa06be720) malloc: *** mmap(size=447524864) failed (error code=12) *** error: can't allocate region *** set a

[sage-support] Re: large sparse integer matrices

2009-01-31 Thread mabshoff
On Jan 31, 11:56 am, John H Palmieri jhpalmier...@gmail.com wrote: I'm having some issues with integer matrices.  I have a matrix mat: sage: mat 891 x 1559 sparse matrix over Integer Ring sage: mat.rank()  # this takes a long time sage.bin(75404,0xa06be720) malloc: ***

[sage-support] Re: large sparse integer matrices

2009-01-31 Thread William Stein
On Sat, Jan 31, 2009 at 11:56 AM, John H Palmieri jhpalmier...@gmail.com wrote: I'm having some issues with integer matrices. I have a matrix mat: sage: mat 891 x 1559 sparse matrix over Integer Ring sage: mat.rank() # this takes a long time sage.bin(75404,0xa06be720) malloc: ***

[sage-support] Re: problem with GraphDatabase

2009-01-31 Thread leeclarks...@gmail.com
It looks like the reference manual needs to be updated. And you pointing this out makes me rethink whether we should set some defaults to make it easier to get the list out. But on the current version, to get the list that you want you need to actually pull it from a GraphQuery. The code looks

[sage-support] Re: Memory Error?

2009-01-31 Thread Rolandb
Tnx! I learned useful stuff ... On 31 jan, 20:52, William Stein wst...@gmail.com wrote: On Sat, Jan 31, 2009 at 11:40 AM, William Stein wst...@gmail.com wrote: On Sat, Jan 31, 2009 at 11:26 AM, mabshoff michael.absh...@mathematik.uni-dortmund.de wrote: On Jan 31, 11:17 am, William Stein

[sage-support] NB to pdf

2009-01-31 Thread kcrisman
Dear Support, I don't believe that turning a notebook worksheet into a pdf is implemented (and thanks to Dan D. for SageTeX, which unfortunately I haven't been able to use properly yet, and Rob B. for his interesting experiments the other way). And that's fine, though it would be great

[sage-support] Re: NB to pdf

2009-01-31 Thread William Stein
On Sat, Jan 31, 2009 at 5:05 PM, kcrisman kcris...@gmail.com wrote: Dear Support, I don't believe that turning a notebook worksheet into a pdf is Though it's not perfect, what I do is click the Print button in the notebook, just to the left of Worksheet, then do print to pdf, which is an