Re: [Numpy-discussion] Polynomial evaluation inconsistencies

2018-07-02 Thread Maxwell Aifer
n't do anything reasonable). > > Chebyshev.literal(lambda T: 1*T[0] + 2*T[1] + 3*T[2]) > > Would work, but honestly I don't think that provides much clarity. I think > the value here is mainly for "simple" polynomials. > > On Sun, 1 Jul 2018 at 23:42 Maxwell Aifer

Re: [Numpy-discussion] Polynomial evaluation inconsistencies

2018-06-30 Thread Maxwell Aifer
Interesting, I wasn't aware that both conventions were widely used. Speaking of series with inverse powers (i.e. Laurent series), I wonder how useful it would be to create a class to represent expressions with integral powers from -m to n. These come up in my work sometimes, and I usually

Re: [Numpy-discussion] Polynomial evaluation inconsistencies

2018-06-30 Thread Maxwell Aifer
plaining the difference, and > pointing users to the more sensible `np.polynomial.Polynomial` > > Eric > > > > On Fri, 29 Jun 2018 at 20:10 Charles R Harris > wrote: > >> On Fri, Jun 29, 2018 at 8:21 PM, Maxwell Aifer >> wrote: >> >>> Hi, >>

[Numpy-discussion] Polynomial evaluation inconsistencies

2018-06-29 Thread Maxwell Aifer
Hi, I noticed some frustrating inconsistencies in the various ways to evaluate polynomials using numpy. Numpy has three ways of evaluating polynomials (that I know of) and each of them has a different syntax: - numpy.polynomial.polynomial.Polynomial