summaryrefslogtreecommitdiff
path: root/numpy/polynomial/tests/test_polynomial.py
Commit message (Collapse)AuthorAgeFilesLines
* ENH: Add {cheb,poly}mulx functions as use them to simplify some code.Charles Harris2010-08-151-0/+8
| | | | Fix some documentation.
* BUG: Fix integration of zero polynomials.Charles Harris2010-08-151-2/+6
| | | | | | Remove checks that prevent use of foreign scalar types for lower bounds and integration constants. Cleanup code a bit.
* Merge branch 'wgt'Charles Harris2010-07-181-9/+38
|
* CHG: Rename reduce method in polytemplate to cutdeg. Reduce is just tooCharles Harris2010-06-071-7/+7
| | | | much like a ufunc and a bit vague.
* CHG: Use [] instead of 'default' to specify the default domain inCharles Harris2010-05-231-2/+3
| | | | Chebyshev.fit and Polynomial.fit. Document the change from numpy 1.4.x.
* ENH: Add reduce method to polynomial.Chebyshev andCharles Harris2010-05-231-0/+8
| | | | | | polynomial.Polynomial. This method behaves like truncate except it takes the degree of the result instead of the number of coefficients.
* REV: Revert the changes to the truncate method of Polynomial and Chebyshev.Charles Harris2010-05-231-4/+4
| | | | | On second thought it was a bad idea to make such a radical change to existing behaviour. It was also hard to document the variations ;)
* CHG: Change the default domain for the fit class method of theCharles Harris2010-05-211-0/+6
| | | | | | | | | Chebyshev and Polynomial classes to None. Add 'default' as a possible value of the domain argument to specify the default domain. This change fits better with my experience with this method. I feel it is safe to make this change at this late date because the functions seem little used as yet and I would like to get them 'right' before folks catch on to their presence.
* CHG: Change the truncate method of the Chebyshev and Polynomial classesCharles Harris2010-05-211-4/+5
| | | | | | to take degree instead of length. This seems to fit better with normal usage. I feel this change is safe at this time because these new classes seem to be little used as yet.
* ENH: Add degree method to the Chebyshev and Polynomial classes.Charles Harris2010-05-211-0/+3
|
* ENH:Charles Harris2010-05-211-0/+7
| | | | | | | 1) Let {poly,cheb}int accept 0 for the number of integrations. 2) Let {poly,cheb}(int,der} accept floating integers for number of integrations or derivations, raise ValueError otherwise. 3) Add tests for same.
* BUG: Fix bug in lbnd implementation of the integ method of the Chebyshev andCharles Harris2010-02-271-0/+2
| | | | Polynomial classes.
* 3K: polynomial: make tests to importPauli Virtanen2010-02-211-1/+0
|
* Small cleanups in polynomial modules.Charles Harris2009-11-281-1/+1
|
* Add support for chebyshev series and polynomials.Charles Harris2009-11-141-0/+436
New modules chebyshev and polynomial are added. The new polynomial module is not compatible with the current polynomial support in numpy, but is much like the new chebyshev module. The most noticeable difference to most will be that coefficients are specified from low to high power, that the low level functions do *not* accept the Chebyshev and Polynomial classes as arguements, and that the Chebyshev and Polynomial classes include a domain. Mapping between domains is a linear substitution and the two classes can be converted one to the other, allowing, for instance, a Chebyshev series in one domain to be expanded as a polynomial in another domain. The new modules are not automatically imported into the numpy namespace, they must be explicitly brought in with a "import numpy.polynomial" statement.