fn
chebyshev_polynomial_w
→Tensorchebyshev_polynomial_w(x: Tensor, n: int)Chebyshev polynomial of the fourth kind, .
The W polynomials are orthogonal on with weight — the mirror image of the V family — and partner with V under the substitution .
Parameters
xTensorArgument tensor; any floating-point dtype.
nintNon-negative polynomial degree.
Returns
Tensor element-wise, same shape and dtype as x.
Notes
Half-angle definition
with the recurrence
Symmetry relation: . Raises
ValueError for n < 0.
Examples
>>> import lucid
>>> from lucid.special import chebyshev_polynomial_w
>>> chebyshev_polynomial_w(lucid.tensor([-1.0, 0.0, 1.0]), n=2)
Tensor([1.0000, -1.0000, 3.0000])