[sage-devel] Re: symbolic summation interface

2008-11-15 Thread Robert Bradshaw
On Nov 14, 2008, at 10:17 AM, Robert Bradshaw wrote: > On Nov 14, 2008, at 7:05 AM, Jason Grout wrote: > >> Mike Hansen wrote: >>> Hello, >>> >>> On Nov 14, 12:26 am, Jason Grout <[EMAIL PROTECTED]> >>> wrote: Franco Saliola wrote: >> Any comments or objections? > What about l

[sage-devel] Re: symbolic summation interface

2008-11-14 Thread Robert Bradshaw
On Nov 14, 2008, at 7:05 AM, Jason Grout wrote: > > Mike Hansen wrote: >> Hello, >> >> On Nov 14, 12:26 am, Jason Grout <[EMAIL PROTECTED]> wrote: >>> Franco Saliola wrote: >>> > Any comments or objections? What about list comprehensions? Something like the following. sage: var('i,n

[sage-devel] Re: symbolic summation interface

2008-11-14 Thread Ronan Paixão
Em Sex, 2008-11-14 às 05:06 -0800, Harald Schilly escreveu: > On Nov 14, 9:26 am, Jason Grout <[EMAIL PROTECTED]> wrote: > > > sage: sum(2^i for i in range(n+1)) > > > sum(i for i in (1..oo)) > > They look nice, but i doubt if they could work. e.g. think of more > than one variable and relations

[sage-devel] Re: symbolic summation interface

2008-11-14 Thread Jason Grout
Mike Hansen wrote: > Hello, > > On Nov 14, 12:26 am, Jason Grout <[EMAIL PROTECTED]> wrote: >> Franco Saliola wrote: >> Any comments or objections? >>> What about list comprehensions? Something like the following. >>> sage: var('i,n') >>> (i, n) >>> sage: sum(2^i for i in range(n+1)) >>> 2^(

[sage-devel] Re: symbolic summation interface

2008-11-14 Thread Harald Schilly
On Nov 14, 9:26 am, Jason Grout <[EMAIL PROTECTED]> wrote: > > sage: sum(2^i for i in range(n+1)) > sum(i for i in (1..oo)) They look nice, but i doubt if they could work. e.g. think of more than one variable and relationships between them (e.g. for all i,j in N where i>j and i mod 7 == 0 and so

[sage-devel] Re: symbolic summation interface

2008-11-14 Thread Mike Hansen
Hello, On Nov 14, 12:26 am, Jason Grout <[EMAIL PROTECTED]> wrote: > Franco Saliola wrote: > > >> Any comments or objections? > > > What about list comprehensions? Something like the following. > > > sage: var('i,n') > > (i, n) > > sage: sum(2^i for i in range(n+1)) > > 2^(n+1) - 1 > > > I ask be

[sage-devel] Re: symbolic summation interface

2008-11-14 Thread Jason Grout
Franco Saliola wrote: >> >> Any comments or objections? > > What about list comprehensions? Something like the following. > > sage: var('i,n') > (i, n) > sage: sum(2^i for i in range(n+1)) > 2^(n+1) - 1 > > I ask because this seems like the natural/first thing a user would try. It's consistent

[sage-devel] Re: symbolic summation interface

2008-11-13 Thread Franco Saliola
On Thu, Nov 13, 2008 at 2:12 PM, Burcin Erocal <[EMAIL PROTECTED]> wrote: > > Hi, > > I plan to start implementing a user interface to symbolic summation > soon and I want to get some opinions on how this interface should be. > > The most natural construct for summation, either of a list or symbol

[sage-devel] Re: symbolic summation interface

2008-11-13 Thread Jason Grout
Burcin Erocal wrote: > otherwise call the python sum function. (Actually, I recall that there > were plans to overwrite this function anyway with one that does > balanced summation if the argument is a list.) > See trac 2737 Jason --~--~-~--~~~---~--~~ To pos

[sage-devel] Re: symbolic summation interface

2008-11-13 Thread Jason Grout
Burcin Erocal wrote: > > (Actually, I recall that there > were plans to overwrite this function anyway with one that does > balanced summation if the argument is a list.) FYI, see trac #2737 Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-

[sage-devel] Re: symbolic summation interface

2008-11-13 Thread Robert Bradshaw
On Nov 13, 2008, at 6:12 AM, William Stein wrote: > On Thu, Nov 13, 2008 at 5:12 AM, Burcin Erocal <[EMAIL PROTECTED]> > wrote: >> >> Hi, >> >> I plan to start implementing a user interface to symbolic summation >> soon and I want to get some opinions on how this interface should be. >> >> The

[sage-devel] Re: symbolic summation interface

2008-11-13 Thread William Stein
On Thu, Nov 13, 2008 at 5:12 AM, Burcin Erocal <[EMAIL PROTECTED]> wrote: > > Hi, > > I plan to start implementing a user interface to symbolic summation > soon and I want to get some opinions on how this interface should be. > > The most natural construct for summation, either of a list or symbol