summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/polynomial/chebyshev.py2
-rw-r--r--numpy/polynomial/hermite.py2
-rw-r--r--numpy/polynomial/hermite_e.py2
-rw-r--r--numpy/polynomial/laguerre.py2
-rw-r--r--numpy/polynomial/legendre.py2
-rw-r--r--numpy/polynomial/polynomial.py2
6 files changed, 6 insertions, 6 deletions
diff --git a/numpy/polynomial/chebyshev.py b/numpy/polynomial/chebyshev.py
index 44fb32b5f..3babb8fc2 100644
--- a/numpy/polynomial/chebyshev.py
+++ b/numpy/polynomial/chebyshev.py
@@ -1472,7 +1472,7 @@ def chebvander2d(x, y, deg):
Returns the pseudo-Vandermonde matrix of degrees `deg` and sample
points `(x, y)`. The pseudo-Vandermonde matrix is defined by
- .. math:: V[..., deg[1]*i + j] = T_i(x) * T_j(y),
+ .. math:: V[..., (deg[1] + 1)*i + j] = T_i(x) * T_j(y),
where `0 <= i <= deg[0]` and `0 <= j <= deg[1]`. The leading indices of
`V` index the points `(x, y)` and the last index encodes the degrees of
diff --git a/numpy/polynomial/hermite.py b/numpy/polynomial/hermite.py
index 00ca8702d..0ebae2027 100644
--- a/numpy/polynomial/hermite.py
+++ b/numpy/polynomial/hermite.py
@@ -1243,7 +1243,7 @@ def hermvander2d(x, y, deg):
Returns the pseudo-Vandermonde matrix of degrees `deg` and sample
points `(x, y)`. The pseudo-Vandermonde matrix is defined by
- .. math:: V[..., deg[1]*i + j] = H_i(x) * H_j(y),
+ .. math:: V[..., (deg[1] + 1)*i + j] = H_i(x) * H_j(y),
where `0 <= i <= deg[0]` and `0 <= j <= deg[1]`. The leading indices of
`V` index the points `(x, y)` and the last index encodes the degrees of
diff --git a/numpy/polynomial/hermite_e.py b/numpy/polynomial/hermite_e.py
index 49888ee09..a09b66670 100644
--- a/numpy/polynomial/hermite_e.py
+++ b/numpy/polynomial/hermite_e.py
@@ -1240,7 +1240,7 @@ def hermevander2d(x, y, deg):
Returns the pseudo-Vandermonde matrix of degrees `deg` and sample
points `(x, y)`. The pseudo-Vandermonde matrix is defined by
- .. math:: V[..., deg[1]*i + j] = He_i(x) * He_j(y),
+ .. math:: V[..., (deg[1] + 1)*i + j] = He_i(x) * He_j(y),
where `0 <= i <= deg[0]` and `0 <= j <= deg[1]`. The leading indices of
`V` index the points `(x, y)` and the last index encodes the degrees of
diff --git a/numpy/polynomial/laguerre.py b/numpy/polynomial/laguerre.py
index 49b0a9247..dfa997254 100644
--- a/numpy/polynomial/laguerre.py
+++ b/numpy/polynomial/laguerre.py
@@ -1242,7 +1242,7 @@ def lagvander2d(x, y, deg):
Returns the pseudo-Vandermonde matrix of degrees `deg` and sample
points `(x, y)`. The pseudo-Vandermonde matrix is defined by
- .. math:: V[..., deg[1]*i + j] = L_i(x) * L_j(y),
+ .. math:: V[..., (deg[1] + 1)*i + j] = L_i(x) * L_j(y),
where `0 <= i <= deg[0]` and `0 <= j <= deg[1]`. The leading indices of
`V` index the points `(x, y)` and the last index encodes the degrees of
diff --git a/numpy/polynomial/legendre.py b/numpy/polynomial/legendre.py
index b54fd2982..fdaa56e0c 100644
--- a/numpy/polynomial/legendre.py
+++ b/numpy/polynomial/legendre.py
@@ -1273,7 +1273,7 @@ def legvander2d(x, y, deg):
Returns the pseudo-Vandermonde matrix of degrees `deg` and sample
points `(x, y)`. The pseudo-Vandermonde matrix is defined by
- .. math:: V[..., deg[1]*i + j] = L_i(x) * L_j(y),
+ .. math:: V[..., (deg[1] + 1)*i + j] = L_i(x) * L_j(y),
where `0 <= i <= deg[0]` and `0 <= j <= deg[1]`. The leading indices of
`V` index the points `(x, y)` and the last index encodes the degrees of
diff --git a/numpy/polynomial/polynomial.py b/numpy/polynomial/polynomial.py
index eae2f8692..19b085eaf 100644
--- a/numpy/polynomial/polynomial.py
+++ b/numpy/polynomial/polynomial.py
@@ -1161,7 +1161,7 @@ def polyvander2d(x, y, deg):
Returns the pseudo-Vandermonde matrix of degrees `deg` and sample
points `(x, y)`. The pseudo-Vandermonde matrix is defined by
- .. math:: V[..., deg[1]*i + j] = x^i * y^j,
+ .. math:: V[..., (deg[1] + 1)*i + j] = x^i * y^j,
where `0 <= i <= deg[0]` and `0 <= j <= deg[1]`. The leading indices of
`V` index the points `(x, y)` and the last index encodes the powers of