Hi,

On Thu, Aug 27, 2009 at 1:00 AM, William Stein<wst...@gmail.com> wrote:
>
> On Wed, Aug 26, 2009 at 7:56 PM, Robert
> Bradshaw<rober...@math.washington.edu> wrote:
>>>> x[1], and then x[1] would create another symbolic variable x[1][1].
>>>>
>>>
>>> That sounds pretty easy to implement by defining __getitem__ for
>>> symbolic variables, and making it cache its answer using a dictionary.
>>
>> I've advocated for this before--I think it's a great idea.
>>
>
> Yes, this makes a lot of sense to me, since it's very common in
> mathematics to have expressions like x_i, where i is some variable.

Does GiNaC/pynac's native  "indexed object" help here?

http://www.ginac.de/tutorial/Indexed-objects.html#Indexed-objects

If so then it may be a good idea to expose these to sage by wrapping
them suitably.

Cheers,
Golam

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to