Hi Nils,
On 09/05/15 19:21, Nils Bruin wrote:
> On Saturday, May 9, 2015 at 8:52:39 AM UTC-7, vdelecroix wrote:
>>
>> - if it makes sense to have a feature for the above multi-indexing of
>> variables
>>
>
> -1. It just muddles the interface. Instead, explain the tools properly so
> that people can write:
>
> QQ[sage.misc.defaults.variable_names(3,"a")]
>
> by the time a user is tired of typing QQ["a0, a1, a2"] etc. they can figure
> out how to automate generating that input and gain a transferable skill.
What do you propose exactly? That PolynomialRing only accepts a string
(for univariate) or a tuple of strings (for multivariate) as input? What
about
PolynomialRing(QQ, 'a,b', 2)
PolynomialRing(QQ, 'a', 2)
On the other hand, the syntax QQ['x,y,z'] is only available to create a
polynomial ring. What about free algebras? free monoids? We should have
a uniform syntax for all of them and this is what I am trying to do in
#18390 with *minimal* changes concerning the syntax to use. Currently,
the only change that I am willing to do is deprecating this `var_array`
in PolynomialRing.
Should I count your e-mail as a -1 for allowing
PolynomialRing(QQ, (2,3), 'a')
FreeAlgebra(QQ, (2,3), 'a')
and that I should instead document
PolynomialRing(QQ, variable_names((2,3), 'a'))
FreeAlgebra(QQ, variable_names((2,3), 'a'))
Best,
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.