On Sun, May 20, 2012 at 9:09 AM, Andreas Hilboll <li...@hilboll.de> wrote:
> Hi, > > I just noticed that there's two polyfit functions, one in > numpy.lib.polynomial, and one in numpy.polynomial. What's the reason for > this? The calling signatures aren't identical (the numpy.polynomial > version supports weights), and I couldn't find a notice on why two > versions exist. > > There are two different polynomial objects, Polynomial and poly1d. The Polynomial object is part of a newer group that also contains Lengendre, Chebyshev, etc., and doesn't have some of the problems that poly1d has. Poly1d is an older implementation. Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion