chebyu
- scipy.special.chebyu(n, monic=False)
Chebyshev polynomial of the second kind.
Defined to be the solution of
Chebyshev polynomial of the second kind.
Defined to be the solution of
is a polynomial of degree .
Degree of the polynomial.
If True, scale the leading coefficient to be 1. Default is False.
Chebyshev polynomial of the second kind.
The polynomials are orthogonal over with weight function .
Milton Abramowitz and Irene A. Stegun, eds. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. New York: Dover, 1972.
Chebyshev polynomials of the second kind of order can be obtained as the determinant of specific matrices. As an example we can check how the points obtained from the determinant of the following matrix lay exactly on :
>>> import numpy as np
>>> import matplotlib.pyplot as plt
>>> from scipy.linalg import det
>>> from scipy.special import chebyu
>>> x = np.arange(
They satisfy the recurrence relation:
where is the Chebyshev polynomial of the first kind. Let’s verify it for :
>>> from scipy.special import chebyt
>>> x = np.arange(-1.0, 1.0, 0.01)
>>> np.allclose(chebyu(3)(x), 2 * chebyt
We can plot the Chebyshev polynomials for some values of :
>>> x = np.arange(-1.0, 1.0, 0.01)
>>> fig, ax = plt.subplots()
>>> ax.set_ylim(-1.5, 1.5)
>>> ax