chebyshev_polynomial_t(x: TensorOrScalar, n: TensorOrScalar)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
Returns
Tensor element-wise, broadcast over x and n.
Notes
Defined by and built by the three-term recurrence
On , ; the extrema lie at the Chebyshev nodes for .
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., -0., -1., 1.])