One approach would be to store all the variables in a nested
dictionary, eg n[1, 2][2, 2], and use var('n_1_2_2_2',
latex_name='n_{(1,2),(2,2)}') to create the variables.
Here's an example:
nn = dict( [ ((i, j), {}) for i in [1..2] for j in [1..2] ] )
nn[(1, 1)] = dict( [ ((i, j),
var
On Mon, 26 Apr 2010 08:48:26 -0700 (PDT)
Ryan Hinton wrote:
> I'm using variable names with non-alphanumeric characters for
> convenience. (Longer story: I have variables with two vector
> subscripts.) Should the following be supported?
>
> sage: nn = var('n(0.1)(3.)')
The variable names shou
I'm using variable names with non-alphanumeric characters for
convenience. (Longer story: I have variables with two vector
subscripts.) Should the following be supported?
sage: nn = var('n(0.1)(3.)')
Creating expressions using ``nn`` seems to work fine -- as long as
everything stays in Sage. B