fn
chebyshev_polynomial_t
→Tensorchebyshev_polynomial_t(x: Tensor, n: int)Chebyshev polynomial of the first kind, .
The Chebyshev T polynomials are orthogonal on with weight and underlie spectral methods, minimax polynomial approximation, and Clenshaw-Curtis quadrature.
Parameters
xTensorArgument tensor; any floating-point dtype. Customarily
evaluated on but defined for all real
x.nintNon-negative polynomial degree.
Returns
Tensor element-wise, same shape and dtype as x.
Notes
Defined by and built by the three-term recurrence
On , ; the extrema lie at the
Chebyshev nodes for .
Raises ValueError for n < 0.
Examples
>>> import lucid
>>> from lucid.special import chebyshev_polynomial_t
>>> chebyshev_polynomial_t(lucid.tensor([-1.0, 0.0, 0.5, 1.0]), n=3)
Tensor([-1.0000, 0.0000, -0.5000, 1.0000])