Hello,

Another question about poynomial ring. Currently, the constructor
accepts the following arguments to determine the variable names
 - arg1
 - arg2
 - name
 - names
 - var_array

The var_array is nowhere used in Sage and its only purpose is to get a
numerotation on two indices rather than one:

sage: PolynomialRing(ZZ, 2, 3, var_array='x')
Multivariate Polynomial Ring in x00, x01, x02, x10, x11, x12
 over Integer Ring

It is not a very nice syntax and moreover it does not allow indexation
on more indices. I would like to deprecate it and instead propose to
extend the variable_names function

def variable_names(t, prefix)

sage: variable_names(3, 'a')
('a0', 'a1', 'a2')
sage: variable_names((2, 2), 'a')
('a00', 'a01', 'a10', 'a11')
sage: variable_names((2, 2, 2), 'a')
('a000', 'a001', ..., 'a111')

A better syntax to access it from PolynomialRing (and also FreeAlgebra
and friends) would be

sage: PolynomialRing(QQ, 'x', (2,2))
Multivariate Polynomial Ring in x00, x01, x02, x10, x11, x12
  over Integer Ring

Please tell me:
 - if 'var_array' is useful to somebody (otherwise it will be deprecated)
 - if it makes sense to have a feature for the above multi-indexing of
variables

Cheers,
Vincent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to