fn
chebyshev_polynomial_u
→Tensorchebyshev_polynomial_u(x: Tensor, n: int)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
xTensorArgument 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.0000, 0.0000, 0.0000, 4.0000])