Re: [sage-devel] Re: coeffs() & coefficients()

2018-02-13 Thread Nguyen Van Minh Hieu
On Thursday, November 27, 2014 at 5:29:35 PM UTC+7, Nathann Cohen wrote: > > > Of course, proposing the statu quo may be unpopular ;-). Another > solution I > > can propose is to keep f.coefficients() as it is, make f.coeffs() an > alias > > of the former, and only keep f.list() for the list

[sage-devel] Re: coeffs() & coefficients()

2014-12-04 Thread Ralf Stephan
> > http://trac.sagemath.org/ticket/17438 > This is now ready. Let's do some mutual review. First, not all expressions are polynomial expressions! > Indeed, one reason I'm interested in this is symbolic power series: http://trac.sagemath.org/ticket/17399 Also, why such a hurry to remove stuff i

Re: [sage-devel] Re: coeffs() & coefficients()

2014-12-03 Thread Ralf Stephan
I *did ask if I should deprecate, I just wasn't sure if we can deprecate the alias. On Wed Dec 03 2014 at 4:10:25 PM john_perry_usm wrote: > Will the ticket you've opened also deal with multivariate polynomial > ideals, or are you working on symbolic expressions only? > Yes. It's almost always

[sage-devel] Re: coeffs() & coefficients()

2014-12-03 Thread john_perry_usm
Sorry for the delay in replying; as noted earlier, I've been traveling. I agree with Samuel; it's important to deprecate first. Some of us run scripts that will break if you simply remove the command, but a deprecation warning both allows the script to keep running and (if it's a good warning)

[sage-devel] Re: coeffs() & coefficients()

2014-12-03 Thread Samuel Lelievre
2014-12-03 10:27:53 UTC+1, Ralf Stephan wrote: > > Sorry, a bit late. I also agree with removing *coeffs* and referring to > *list *in the documentation of *coefficients*. > > What's more, the issue comes up with symbolic expressions too, where > *coeffs *is an alias of* coefficients*, and ther

[sage-devel] Re: coeffs() & coefficients()

2014-12-03 Thread Ralf Stephan
Sorry, a bit late. I also agree with removing *coeffs* and referring to *list *in the documentation of *coefficients*. What's more, the issue comes up with symbolic expressions too, where *coeffs *is an alias of* coefficients*, and there is no list function. This would be the perfect opportuni

[sage-devel] Re: coeffs() & coefficients()

2014-11-30 Thread Volker Braun
You want this one: sage: R. = QQ[] sage: (x^2+2*y+1).dict() {(0, 0): 1, (0, 1): 2, (2, 0): 1} On Sunday, November 30, 2014 8:06:28 AM UTC, rjf wrote: > > maybe this could be added. > A method called something like ExponentCoeffPairsExcludingZeros, > which would return a list of pairs, in so

[sage-devel] Re: coeffs() & coefficients()

2014-11-30 Thread rjf
maybe this could be added. A method called something like ExponentCoeffPairsExcludingZeros, which would return a list of pairs, in some exponent order. Maybe that's inconvenient in Python/sympy. RJF > -- You received this message because you are subscribed to the Google Groups "sage-de

Re: [sage-devel] Re: coeffs() & coefficients()

2014-11-27 Thread Nils Bruin
On Thursday, November 27, 2014 2:23:09 AM UTC-8, Bruno Grenet wrote: > > While I agree that the current names can be confusing, we have to be > careful not to make something even more confusing. As mentioned earlier > by John, f.coefficients() is "correlated" with f.exponents() and I think > it

Re: [sage-devel] Re: coeffs() & coefficients()

2014-11-27 Thread Bruno Grenet
Le 27/11/2014 11:29, Nathann Cohen a écrit : Of course, proposing the statu quo may be unpopular ;-). Another solution I can propose is to keep f.coefficients() as it is, make f.coeffs() an alias of the former, and only keep f.list() for the list of all the coefficients. If I understand what you

Re: [sage-devel] Re: coeffs() & coefficients()

2014-11-27 Thread Nathann Cohen
> Of course, proposing the statu quo may be unpopular ;-). Another solution I > can propose is to keep f.coefficients() as it is, make f.coeffs() an alias > of the former, and only keep f.list() for the list of all the coefficients. If I understand what you said, you want "coefficients" to be left

Re: [sage-devel] Re: coeffs() & coefficients()

2014-11-27 Thread Bruno Grenet
Le 27/11/2014 10:47, Nathann Cohen a écrit : It seems to me that as a general principle, a method whose name is an abbreviation of the name of another method should actually be the same method. Anything else is hugely confusing to a user. Both the functionalities described are, of course, usef

Re: [sage-devel] Re: coeffs() & coefficients()

2014-11-27 Thread Nathann Cohen
> It seems to me that as a general principle, a method whose name is an > abbreviation of the name of another method should actually be the same > method. Anything else is hugely confusing to a user. Both the > functionalities described are, of course, useful, but giving them such > similar names

[sage-devel] Re: coeffs() & coefficients()

2014-11-27 Thread Francis Clarke
On Wednesday, November 26, 2014 8:06:31 PM UTC, john_perry_usm wrote: > > I would propose the following: > > *f.coeffs?* should state something to the effect of, "Returns all the > coefficients of a dense representation of f." > > *f.coefficients?* should state something like, "Returns all the

[sage-devel] Re: coeffs() & coefficients()

2014-11-26 Thread Simon King
Hi John, On 2014-11-26, john_perry_usm wrote: > I would propose the following: > > *f.coeffs?* should state something to the effect of, "Returns all the > coefficients of a dense representation of f." > > *f.coefficients?* should state something like, "Returns all the > coefficients of a sparse