[sage-support] Re: Double indexed variables

2012-03-29 Thread Simon King
Hi Adam, On 2012-03-28, Adam Sorkin wrote: > --=_Part_852_32340732.1332963705957 > Content-Type: text/plain; charset=ISO-8859-1 > > This works fine when the variable is of type > sage.symbolic.expression.Expression > but when I make the polynomial ring PolynomialRing(QQ, a), it breaks. I ag

[sage-support] Re: Double indexed variables

2012-03-28 Thread Adam Sorkin
This works fine when the variable is of type sage.symbolic.expression.Expression but when I make the polynomial ring PolynomialRing(QQ, a), it breaks. Here is the specific code: a = var( 'a1comma2', latex_name='a_{ %d, %d }' % (1,2)) a; view(a); type(a); a1comma2a1,2 vars = PolynomialRing(Q

[sage-support] Re: Double indexed variables

2012-03-28 Thread P Purkayastha
something like a11 = var('a11', latex_name='a_{1,1}') Then, view(a11) will show you the latex representation. On Wednesday, March 28, 2012 7:41:41 AM UTC+8, Adam Sorkin wrote: > > I need to use the notation of doubly indexed variables, e.g., a_{i,j} in > latex. Currently, the variables belong to