Re: [Numpy-discussion] polynomial with negative exponents

2011-12-12 Thread Charles R Harris
On Mon, Dec 12, 2011 at 10:17 AM, Gregor Thalhammer < gregor.thalham...@gmail.com> wrote: > > Am 12.12.2011 um 15:04 schrieb LASAGNA DAVIDE: > > > Hi, > > > > I have written a class for polynomials with negative > > exponents like: > > > > p(x) = a0 + a1*x**-1 + ... + an*x**-n > > > > The code is

Re: [Numpy-discussion] polynomial with negative exponents

2011-12-12 Thread Gregor Thalhammer
Am 12.12.2011 um 15:04 schrieb LASAGNA DAVIDE: > Hi, > > I have written a class for polynomials with negative > exponents like: > > p(x) = a0 + a1*x**-1 + ... + an*x**-n > > The code is this one: > > class NegativeExpPolynomial( object ): > def __init__ ( self, coeffs ): > self

Re: [Numpy-discussion] polynomial with negative exponents

2011-12-12 Thread josef . pktd
On Mon, Dec 12, 2011 at 9:35 AM, wrote: > On Mon, Dec 12, 2011 at 9:04 AM, LASAGNA DAVIDE > wrote: >> Hi, >> >> I have written a class for polynomials with negative >> exponents like: >> >> p(x) = a0 + a1*x**-1 + ... + an*x**-n >> >> The code is this one: >> >> class NegativeExpPolynomial( objec

Re: [Numpy-discussion] polynomial with negative exponents

2011-12-12 Thread josef . pktd
On Mon, Dec 12, 2011 at 9:04 AM, LASAGNA DAVIDE wrote: > Hi, > > I have written a class for polynomials with negative > exponents like: > > p(x) = a0 + a1*x**-1 + ... + an*x**-n > > The code is this one: > > class NegativeExpPolynomial( object ): >      def __init__ ( self, coeffs ): >          se

[Numpy-discussion] polynomial with negative exponents

2011-12-12 Thread LASAGNA DAVIDE
Hi, I have written a class for polynomials with negative exponents like: p(x) = a0 + a1*x**-1 + ... + an*x**-n The code is this one: class NegativeExpPolynomial( object ): def __init__ ( self, coeffs ): self.coeffs = np.array( coeffs ) def __call__( self, x ):