For teaching it is certainly nice to have numpy.polynomial.polynomial.polyfit providing modern (vs. traditional) parameter order, but  it is rather buried  np.polyfit uses traditional order and has the same name I recall there was some controversy (?) over all of this, but might it not be appropriate to have a keyword argument to both specifying whether the parameter order is to be modern or traditional (in both polyfits and polyvals)? fwiw, Alan Isaac
For teaching it is certainly nice to have numpy.polynomial.polynomial.polyfit providing modern (vs. traditional) parameter order, but
 it is rather buried  np.polyfit uses traditional order and has the same name
I recall there was some controversy (?) over all of this, but might it not be appropriate to have a keyword argument to both specifying whether the parameter order is to be modern or traditional (in both polyfits and polyvals)?
It would be messy, as there are a lot of functions in
On Wed, Dec 18, 2013 at 3:23 PM, Alan G Isaac <alan.isaac@gmail.com> wrote: polynomial.polynomial that depend on the coefficient order. For the higher level Polynomial class, there is a routine in ipython that will do a pretty display of Polynomial instances which might be useful. Let's see... look here http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/note... search the page for Polynomial. Chuck
On Wed, Dec 18, 2013 at 3:38 PM, Charles R Harris <charlesr.harris@gmail.com
wrote:
On Wed, Dec 18, 2013 at 3:23 PM, Alan G Isaac <alan.isaac@gmail.com>wrote:
For teaching it is certainly nice to have numpy.polynomial.polynomial.polyfit providing modern (vs. traditional) parameter order, but
 it is rather buried  np.polyfit uses traditional order and has the same name
I recall there was some controversy (?) over all of this, but might it not be appropriate to have a keyword argument to both specifying whether the parameter order is to be modern or traditional (in both polyfits and polyvals)?
It would be messy, as there are a lot of functions in polynomial.polynomial that depend on the coefficient order. For the higher level Polynomial class, there is a routine in ipython that will do a pretty display of Polynomial instances which might be useful. Let's see... look here http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/note... search the page for Polynomial.
Although beginning students might find the domain/window concept used in Polynomial confusing... Strictly speaking, the polynomial should be rendered as powers of ((x  off)/scale) if the domain differs from the window. Chuck
participants (2)

Alan G Isaac

Charles R Harris