[Numpy-discussion] Structure of polynomial module

Stéfan van der Walt stefan@sun.ac...
Tue Feb 7 04:40:53 CST 2012

On Mon, Feb 6, 2012 at 2:34 PM, Charles R Harris
<charlesr.harris@gmail.com> wrote:
> Use Polynomial.fit, it tracks the domain for you. Want to use Legendre
> functions? Use Legendre.fit. Want to plot the result? plot(*p.linspace()),
> want to plot the derivative? plot(*p.deriv().linspace()). Want to convert a
> Legendre series to a Polynomial? p.convert(kind=Polynomial). So on and so
> forth. The fitting is also NA aware in the development branch.

That's really neat; thanks, Chuck.


More information about the NumPy-Discussion mailing list