summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-03-03 07:47:10 -0700
committerCharles Harris <charlesr.harris@gmail.com>2011-03-03 07:47:10 -0700
commit578cbb489bfad48b1611c4cfd5d89fc6ac9a7ce8 (patch)
tree8ddc6b127dddef4ad2386b690643c8d4c759d640
parent4b8923f63439b14fd20720f51bb0551f8ec595bc (diff)
downloadnumpy-578cbb489bfad48b1611c4cfd5d89fc6ac9a7ce8.tar.gz
BUG: add polypow, chebpow, legpow to __all__ and module documentation.
-rw-r--r--numpy/polynomial/chebyshev.py11
-rw-r--r--numpy/polynomial/legendre.py10
-rw-r--r--numpy/polynomial/polynomial.py10
3 files changed, 17 insertions, 14 deletions
diff --git a/numpy/polynomial/chebyshev.py b/numpy/polynomial/chebyshev.py
index 5fb28ea07..6b1edf497 100644
--- a/numpy/polynomial/chebyshev.py
+++ b/numpy/polynomial/chebyshev.py
@@ -23,6 +23,7 @@ Arithmetic
- `chebsub` -- subtract one Chebyshev series from another.
- `chebmul` -- multiply two Chebyshev series.
- `chebdiv` -- divide one Chebyshev series by another.
+- `chebpow` -- raise a Chebyshev series to an positive integer power
- `chebval` -- evaluate a Chebyshev series at given points.
Calculus
@@ -39,7 +40,7 @@ Misc Functions
- `chebpts1` -- Chebyshev points of the first kind.
- `chebpts2` -- Chebyshev points of the second kind.
- `chebtrim` -- trim leading coefficients from a Chebyshev series.
-- `chebline` -- Chebyshev series of given straight line.
+- `chebline` -- Chebyshev series representing given straight line.
- `cheb2poly` -- convert a Chebyshev series to a polynomial.
- `poly2cheb` -- convert a polynomial to a Chebyshev series.
@@ -78,10 +79,10 @@ References
from __future__ import division
__all__ = ['chebzero', 'chebone', 'chebx', 'chebdomain', 'chebline',
- 'chebadd', 'chebsub', 'chebmulx', 'chebmul', 'chebdiv', 'chebval',
- 'chebder', 'chebint', 'cheb2poly', 'poly2cheb', 'chebfromroots',
- 'chebvander', 'chebfit', 'chebtrim', 'chebroots', 'chebpts1',
- 'chebpts2', 'Chebyshev']
+ 'chebadd', 'chebsub', 'chebmulx', 'chebmul', 'chebdiv', 'chebpow',
+ 'chebval', 'chebder', 'chebint', 'cheb2poly', 'poly2cheb',
+ 'chebfromroots', 'chebvander', 'chebfit', 'chebtrim', 'chebroots',
+ 'chebpts1', 'chebpts2', 'Chebyshev']
import numpy as np
import numpy.linalg as la
diff --git a/numpy/polynomial/legendre.py b/numpy/polynomial/legendre.py
index 3d7bbb521..9aec256cd 100644
--- a/numpy/polynomial/legendre.py
+++ b/numpy/polynomial/legendre.py
@@ -21,6 +21,7 @@ Arithmetic
- `legsub` -- subtract one Legendre series from another.
- `legmul` -- multiply two Legendre series.
- `legdiv` -- divide one Legendre series by another.
+- `legpow` -- raise a Legendre series to an positive integer power
- `legval` -- evaluate a Legendre series at given points.
Calculus
@@ -35,7 +36,7 @@ Misc Functions
- `legvander` -- Vandermonde-like matrix for Legendre polynomials.
- `legfit` -- least-squares fit returning a Legendre series.
- `legtrim` -- trim leading coefficients from a Legendre series.
-- `legline` -- Legendre series of given straight line.
+- `legline` -- Legendre series representing given straight line.
- `leg2poly` -- convert a Legendre series to a polynomial.
- `poly2leg` -- convert a polynomial to a Legendre series.
@@ -51,9 +52,10 @@ See also
from __future__ import division
__all__ = ['legzero', 'legone', 'legx', 'legdomain', 'legline',
- 'legadd', 'legsub', 'legmulx', 'legmul', 'legdiv', 'legval',
- 'legder', 'legint', 'leg2poly', 'poly2leg', 'legfromroots',
- 'legvander', 'legfit', 'legtrim', 'legroots', 'Legendre']
+ 'legadd', 'legsub', 'legmulx', 'legmul', 'legdiv', 'legpow',
+ 'legval', 'legder', 'legint', 'leg2poly', 'poly2leg',
+ 'legfromroots', 'legvander', 'legfit', 'legtrim', 'legroots',
+ 'Legendre']
import numpy as np
import numpy.linalg as la
diff --git a/numpy/polynomial/polynomial.py b/numpy/polynomial/polynomial.py
index 6b5b7be98..3efe25920 100644
--- a/numpy/polynomial/polynomial.py
+++ b/numpy/polynomial/polynomial.py
@@ -20,6 +20,7 @@ Arithmetic
- `polysub` -- subtract one polynomial from another.
- `polymul` -- multiply two polynomials.
- `polydiv` -- divide one polynomial by another.
+- `polypow` -- raise a polynomial to an positive integer power
- `polyval` -- evaluate a polynomial at given points.
Calculus
@@ -34,8 +35,7 @@ Misc Functions
- `polyvander` -- Vandermonde-like matrix for powers.
- `polyfit` -- least-squares fit returning a polynomial.
- `polytrim` -- trim leading coefficients from a polynomial.
-- `polyline` -- Given a straight line, return the equivalent polynomial
- object.
+- `polyline` -- polynomial representing given straight line.
Classes
-------
@@ -49,9 +49,9 @@ See also
from __future__ import division
__all__ = ['polyzero', 'polyone', 'polyx', 'polydomain', 'polyline',
- 'polyadd', 'polysub', 'polymulx', 'polymul', 'polydiv', 'polyval',
- 'polyder', 'polyint', 'polyfromroots', 'polyvander', 'polyfit',
- 'polytrim', 'polyroots', 'Polynomial']
+ 'polyadd', 'polysub', 'polymulx', 'polymul', 'polydiv', 'polypow',
+ 'polyval', 'polyder', 'polyint', 'polyfromroots', 'polyvander',
+ 'polyfit', 'polytrim', 'polyroots', 'Polynomial']
import numpy as np
import numpy.linalg as la