Chebyshev polynomial of the second kind, .
The U polynomials are orthogonal on with weight . They appear naturally as the derivative of the T polynomials (up to a normalisation) and in Gauss-Chebyshev quadrature of the second kind.
Parameters
Argument tensor; any floating-point dtype.
nintNon-negative polynomial degree.
Returns
Tensor element-wise, same shape and dtype as x.
Notes
Defined by and obeying
Linked to T by . Raises
ValueError for n < 0.
Examples
>>> import lucid
>>> from lucid.special import chebyshev_polynomial_u
>>> chebyshev_polynomial_u(lucid.tensor([-1.0, 0.0, 0.5, 1.0]), n=3)
tensor([-4., -0., -1., 4.])