[sage-devel] Saving graphs to Postscript

2007-07-13 Thread David Roe
Hey all, I ran into a problem saving a graph to postscript recently. Here's what I did: plot.options['plot_division'] = 4 plot.options['plot_points'] = 2 P=plot(sin(5/(x)), x,0,1) P.save('filename.eps', xmin = -.25, xmax = 1) Attempting to open the resulting file on my MacBook Pro with e

[sage-devel] Re: get_unsafe()

2007-07-13 Thread Justin C. Walker
On Jul 10, 2007, at 3:12 PM, William Stein wrote: > On 7/10/07, Justin C. Walker <[EMAIL PROTECTED]> wrote: >> On Jul 10, 2007, at 2:45 PM, Robert Bradshaw wrote: [snip] >>> If you are writing an method that goes through each (or many) >>> entries >>> of a matrix, it is the thing to use if you

[sage-devel] Re: Pyrex performance

2007-07-13 Thread Justin C. Walker
Wrapping up this, for the record, from a couple of weeks back: On Jun 29, 2007, at 12:48 AM, Robert Bradshaw wrote: > As other people have mentioned, there's a factor of 2 overhead in the > first loop. I'm not sure why you're indexing from 1 either. Thanks for the comments... Indeed, I managed

[sage-devel] Re: odd error in sage,

2007-07-13 Thread John Cremona
And to me please!! On 7/13/07, William Stein <[EMAIL PROTECTED]> wrote: > > On 7/13/07, William Stein <[EMAIL PROTECTED]> wrote: > > > I was writing a function to calculate the structure of cuspidal subgroup > > > of > > > J_0(N) without using modular symbols. I came across the following puzzli

[sage-devel] Re: odd error in sage,

2007-07-13 Thread William Stein
On 7/13/07, William Stein <[EMAIL PROTECTED]> wrote: > > I was writing a function to calculate the structure of cuspidal subgroup of > > J_0(N) without using modular symbols. I came across the following puzzling How are you doing that? I didn't know there was an algorithm to compute the structur

[sage-devel] Re: odd error in sage,

2007-07-13 Thread Jason Grout
Soroosh Yazdani wrote: > Hi, > > I was writing a function to calculate the structure of cuspidal subgroup > of J_0(N) without using modular symbols. I came across the following > puzzling bug. Here is a procedure which produces a matrix > def generate_cond5(l,r): > M=Matrix(QQ,l,r) > fo

[sage-devel] Re: odd error in sage,

2007-07-13 Thread William Stein
On 7/13/07, Soroosh Yazdani <[EMAIL PROTECTED]> wrote: > Hi, > > I was writing a function to calculate the structure of cuspidal subgroup of > J_0(N) without using modular symbols. I came across the following puzzling > bug. Here is a procedure which produces a matrix > def generate_cond5(l,r): >

[sage-devel] odd error in sage,

2007-07-13 Thread Soroosh Yazdani
Hi, I was writing a function to calculate the structure of cuspidal subgroup of J_0(N) without using modular symbols. I came across the following puzzling bug. Here is a procedure which produces a matrix def generate_cond5(l,r): M=Matrix(QQ,l,r) for j in range(l): divpoint=2**j