Re: [sage-support] Sums of Modular Symbols

2011-07-31 Thread D. S. McNeil
> We would like to know if certain sums of modular symbols span the > space. Is this the sort of thing you had in mind? sage: M=ModularSymbols(11,2);M Modular Symbols space of dimension 3 for Gamma_0(11) of weight 2 with sign 0 over Rational Field sage: b = M.basis() sage: sage: s1 = 2*b[1] - b[2

[sage-support] Sums of Modular Symbols

2011-07-31 Thread jack
We would like to know if certain sums of modular symbols span the space. For a simple example, let sage: M=ModularSymbols(11,2);M Modular Symbols space of dimension 3 for Gamma_0(11) of weight 2 with sign 0 over Rational Field sage: M.basis() ((1,0), (1,8), (1,9)) Now, say we have three sums of

[sage-support] Re: Sage's version of enumerate

2011-07-31 Thread tvn
great- thanks, I thought there's an equivalent one in sage since there's equivalent to functions such as range, xrange, etc. Just want to make sure that I don't write my own function if one already existed. -- To post to this group, send email to sage-support@googlegroups.com To unsubscri

Re: [sage-support] Sage's version of enumerate

2011-07-31 Thread Justin C. Walker
On Jul 31, 2011, at 11:00 , William Stein wrote: > On Sun, Jul 31, 2011 at 10:54 AM, Justin C. Walker wrote: >> >> On Jul 31, 2011, at 02:29 , tvn wrote: >> >>> The enumerate function in Python has the index type as 'int' instead of say >>> sage's Integer. is there an equivalent of enumerat

Re: [sage-support] Sage's version of enumerate

2011-07-31 Thread Tim Joseph Dumol
Whoops, looks like William beat me to it. On Mon, Aug 1, 2011 at 2:00 AM, Tim Joseph Dumol wrote: > While I don't think there's one readily available, you can easily define > one yourself: > > def senumerate(seq): > return ((ZZ(i), x) for (i,x) in enumerate(seq)) > > Hoep this helps. > > > O

Re: [sage-support] Sage's version of enumerate

2011-07-31 Thread Tim Joseph Dumol
While I don't think there's one readily available, you can easily define one yourself: def senumerate(seq): return ((ZZ(i), x) for (i,x) in enumerate(seq)) Hoep this helps. On Sun, Jul 31, 2011 at 5:29 PM, tvn wrote: > The enumerate function in Python has the index type as 'int' instead o

Re: [sage-support] Sage's version of enumerate

2011-07-31 Thread William Stein
On Sun, Jul 31, 2011 at 10:54 AM, Justin C. Walker wrote: > > On Jul 31, 2011, at 02:29 , tvn wrote: > >> The enumerate function in Python has the index type as 'int'  instead of say >> sage's Integer.   is there an equivalent of enumerate in Sage that returns >> Integer type ?  Thanks > > Try sra

Re: [sage-support] Sage's version of enumerate

2011-07-31 Thread Justin C. Walker
On Jul 31, 2011, at 02:29 , tvn wrote: > The enumerate function in Python has the index type as 'int' instead of say > sage's Integer. is there an equivalent of enumerate in Sage that returns > Integer type ? Thanks Try srange and sxrange/xsrange. Details with "?" HTH Justin -- Justi

Re: [sage-support] Re: Sage does not work properly after compilation in ubuntu 11.04

2011-07-31 Thread Minh Nguyen
Hi Nikos, On Sun, Jul 31, 2011 at 9:51 PM, Nikos Tzanakis wrote: > So, how do I make this permanent? I thought I set the > permissions correctly, > everything is readable, writable and executable in the sage directory: You should never, ever build Sage as root. If you just want to build Sage fro

[sage-support] Re: Sage does not work properly after compilation in ubuntu 11.04

2011-07-31 Thread Nikos Tzanakis
Thanks for the reply! > What happens when you try > > tzanakis@turing:/opt/sage4.7$ sudo ./sage > > instead? Works!! So, how do I make this permanent? I thought I set the permissions correctly, everything is readable, writable and executable in the sage directory: tzanakis@turing:/opt/sage4.7$ l

Re: [sage-support] Sage does not work properly after compilation in ubuntu 11.04

2011-07-31 Thread David Joyner
On Sun, Jul 31, 2011 at 5:41 AM, Nikos Tzanakis wrote: > Dear all, > I just compiled sage from source (since the binary did not work for me) in > ubuntu 11.04 (in particular, lubuntu). I followed the instructions and the > compilation seemed to be successful. Also I set the permissions correctly.

[sage-support] Sage does not work properly after compilation in ubuntu 11.04

2011-07-31 Thread Nikos Tzanakis
Dear all, I just compiled sage from source (since the binary did not work for me) in ubuntu 11.04 (in particular, lubuntu). I followed the instructions and the compilation seemed to be successful. Also I set the permissions correctly. However, when I run sage, I get a long message, which I attach

[sage-support] Sage's version of enumerate

2011-07-31 Thread tvn
The enumerate function in Python has the index type as 'int' instead of say sage's Integer. is there an equivalent of enumerate in Sage that returns Integer type ? Thanks -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to s

[sage-support] Re: [sage-notebook] Re: public single cell server

2011-07-31 Thread Juanlu001
Yep, it seems they work now. Great! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sag

Re: [sage-support] how to import locally defined extension types?

2011-07-31 Thread Robert Bradshaw
On Fri, Jul 29, 2011 at 5:00 PM, john_perry_usm wrote: > Hi > > I have a file type1.pyx that defines an extension type Type1, and a > file type2.pyx that defines an extension type Type2. Some attributes > of Type2 are of type Type1. If I have the types in one file, > everything runs fine; I'd like

[sage-support] Re: [sage-notebook] Re: public single cell server

2011-07-31 Thread Jason Grout
On 7/30/11 2:40 AM, Juanlu001 wrote: I have tested multiple interacts of mine and some computations, and everything seems to work quite well except for the backslash \, which I tried to use to split lines. It gives a syntax error: SyntaxErrorTraceback (most recent

[sage-support] Re: public single cell server

2011-07-31 Thread Jason Grout
On 7/29/11 5:11 PM, Jason Grout wrote: Hi everyone, I'd like to announce a trial beta run of a public single cell server: http://sagemath.org:5467/ The idea is that this is a single cell that can very easily be embedded in any webpage. This is the start of a comprehensive Sage web service as w

[sage-support] Re: how to import locally defined extension types?

2011-07-31 Thread Simon King
Hi John, I don't know if I have a good solution to your question. At least, let me bring your question back to the first screen (perhaps someone else has a better solution?) and try to explain my not-so-nice- and-far-from-being-really-useful solution... On 30 Jul., 02:00, john_perry_usm wrote: