On Nov 28, 2008, at 1:45 AM, hbetx9 wrote:

>
> Hi Sage Community,
>
>   After reviewing this oustanding piece of software, I would like to
> utilize it to solve some problems I've been working on. However I have
> one question that the documentation has not provided a solution for.
> Is there a way have symbolic lists or lists of symbolic variables? Our
> would I have to construct a new class for this?
>
> Best,
> Lance
>

You can certainly create lists with symbolic variables in them. You
need to define the variables up from with:

var('x,y,z,a,b,c')

or what ever your variables are. Since the input to var is a string
you can even build up the list through string manipulation to get
a1 through a10 for example. Once you have the variables defined, you
can create a list like:

list = [a,b,c,d]

The list can have expressions utilizing those variables if you want.

Hope this helps. If I've misunderstood the question, could you clarify
what you want to do with them?

I recommend you look at the Python references in the Documentation  
section
of the web site for more details on Python lists.

Cheers,

Tim.

---
Tim Lahey
PhD Candidate, Systems Design Engineering
University of Waterloo
http://www.linkedin.com/in/timlahey


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to