On Jun 3, 8:45 pm, Robert Bradshaw <rober...@math.washington.edu> wrote: > Currently symbolic variables are un-indexable. What would people > think of having indexing create new subscripted variables? > > sage: a = var('a') > sage: a[0] > a_0 > sage: latex(a[1,2]) > a_{1,2} >
I like it, this idea could also be expanded to vectors, like a[0:3] == vector([a_0, a_1, a_2, a_3]) # note, also a_3 and probably, the var constructor should also be more intelligent, i.e. var('a[0:3]') creates all the a_i (and avoids the unindexed 'a' you would need in your 2-step approach above) h --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---