Chris@87
|
1 """
|
Chris@87
|
2 A sub-package for efficiently dealing with polynomials.
|
Chris@87
|
3
|
Chris@87
|
4 Within the documentation for this sub-package, a "finite power series,"
|
Chris@87
|
5 i.e., a polynomial (also referred to simply as a "series") is represented
|
Chris@87
|
6 by a 1-D numpy array of the polynomial's coefficients, ordered from lowest
|
Chris@87
|
7 order term to highest. For example, array([1,2,3]) represents
|
Chris@87
|
8 ``P_0 + 2*P_1 + 3*P_2``, where P_n is the n-th order basis polynomial
|
Chris@87
|
9 applicable to the specific module in question, e.g., `polynomial` (which
|
Chris@87
|
10 "wraps" the "standard" basis) or `chebyshev`. For optimal performance,
|
Chris@87
|
11 all operations on polynomials, including evaluation at an argument, are
|
Chris@87
|
12 implemented as operations on the coefficients. Additional (module-specific)
|
Chris@87
|
13 information can be found in the docstring for the module of interest.
|
Chris@87
|
14
|
Chris@87
|
15 """
|
Chris@87
|
16 from __future__ import division, absolute_import, print_function
|
Chris@87
|
17
|
Chris@87
|
18 from .polynomial import Polynomial
|
Chris@87
|
19 from .chebyshev import Chebyshev
|
Chris@87
|
20 from .legendre import Legendre
|
Chris@87
|
21 from .hermite import Hermite
|
Chris@87
|
22 from .hermite_e import HermiteE
|
Chris@87
|
23 from .laguerre import Laguerre
|
Chris@87
|
24
|
Chris@87
|
25 from numpy.testing import Tester
|
Chris@87
|
26 test = Tester().test
|
Chris@87
|
27 bench = Tester().bench
|