On Wed, Feb 04, 2009 at 07:12:54AM -0800, chu-ching huang wrote:
> 
> Hi,
> 
> Maybe this had been discussed:
> 
> how to define a sequence of variables (by symbols), {x_1,x_2,---,x_n}
> in case n is also a variable?

Do you want this:

In [1]: var('x_1 x_2 x_n')
Out[1]: (x_1, x_2, x_n)

In [2]: x_1 + x_2 + x_n
Out[2]: x_1 + x_2 + x_n


By,

  Friedrich

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to