On Wed, Dec 18, 2013 at 3:38 PM, Charles R Harris <[email protected] > wrote:
> > > > On Wed, Dec 18, 2013 at 3:23 PM, Alan G Isaac <[email protected]>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/notebooks/Custom%20Display%20Logic.ipynband > 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
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
