<br><br><div class="gmail_quote">On Sun, May 20, 2012 at 9:41 AM, Charles R Harris <span dir="ltr"><<a href="mailto:charlesr.harris@gmail.com" target="_blank">charlesr.harris@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div><div class="h5">On Sun, May 20, 2012 at 9:37 AM, Charles R Harris <span dir="ltr"><<a href="mailto:charlesr.harris@gmail.com" target="_blank">charlesr.harris@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div>On Sun, May 20, 2012 at 9:09 AM, Andreas Hilboll <span dir="ltr"><<a href="mailto:lists@hilboll.de" target="_blank">lists@hilboll.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi,<br>
<br>
I just noticed that there's two polyfit functions, one in<br>
numpy.lib.polynomial, and one in numpy.polynomial. What's the reason for<br>
this? The calling signatures aren't identical (the numpy.polynomial<br>
version supports weights), and I couldn't find a notice on why two<br>
versions exist.<br>
<br></blockquote></div><div><br>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.<br>

</div></div></blockquote></div></div><div><br>Oh, and the polyfit function in polynomial.polynomial isn't meant to be used directly, it is mostly there to support the fit class function of Polynomial. See the documentation <a href="http://preview.tinyurl.com/8289gfs" target="_blank">here</a>.<br>

<br></div></div></blockquote><div><br>Better link <a href="http://tinyurl.com/8289gfs">here</a>.<br><br>Chuck<br></div><br></div>