On 11/07/2016 02:59 AM, oldk1331 wrote: > monomial(1,1) is widely used, it's also the most convenient way > to construct a SUP: > > x := monomial(1,1)$SUP INT > f := x^3+2*x^2+x > > I wonder if it's worth it to add a new function as a shorthand > of monomial(1,1). And if so, which name will be appropriate?
I'm not sure if it is worth, but when I work with polynomial domains, I am always looking for a variable: () -> % function. This could be NNI -> % for multivariate domains. Another name could be "generator", but I would be against it, because it is a keyword in Aldor. On the other hand, looking through the list of available functions, it's pretty easy to come to the conclusion that one has to us monomial(1,1) for a variable and if you have realised, (1) -> f: SUP(INT) := x^3+2*x^2+x 3 2 (1) ? + 2? + ? Type: SparseUnivariatePolynomial(Integer) also works just fine in the interpreter. This restricts the usefulness of an "abbreviation" function to "programming in SPAD". Ralf -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel+unsubscr...@googlegroups.com. To post to this group, send email to fricas-devel@googlegroups.com. Visit this group at https://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.