chebyshev_polynomial_u(x: TensorOrScalar, n: TensorOrScalar)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
Returns
Tensor element-wise, broadcast over x and n.
Notes
Defined by and obeying
Linked to T by .
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.])