On Sat, Dec 1, 2012 at 6:42 PM, Shriramana Sharma <samj...@gmail.com> wrote:
> On Sat, Dec 1, 2012 at 5:32 PM, Chris Smith <smi...@gmail.com> wrote: > > If the functions work, then no. But functions don't carry assumptions. > > Can you clarify what you mean by "assumptions"? > > And even though it seems (I haven't yet implemented that part of my > program yet) that it would be sufficient to use Functions the way you > have indicated, I still think it would be useful to have a symbolic > array kind of variable where each subscripted item i.e. val[0] val[1] > etc would be a distinct symbol. I am having very very vague ideas of > something like: > > class SymList(Expr): > def __init__(self,name,size): > self.list=list(symbols(name+':'+str(size))) > > etc etc... so that if lamb=SymList('lamb',5) then lamb[0] lamb[1] ... > that's what symbols does for you; just store the result in an array if you want: >>> a=symbols('a:11') >>> a[1] a1 >>> a (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) Have you looked at Indexed? -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.