Skip to content
fn

shifted_chebyshev_polynomial_w

→Tensor
shifted_chebyshev_polynomial_w(x: TensorOrScalar, n: TensorOrScalar)

Shifted Chebyshev W polynomial Wn∗(x)W^*_n(x) on [0,1][0, 1].

Chebyshev W polynomials of the fourth kind composed with x↦2x−1x \mapsto 2x - 1.

Parameters

xTensor | Scalar
Where Wn∗W^*_n is evaluated, of any real dtype. Customarily on [0,1][0, 1].
nTensor | Scalar
Degree of Wn∗W^*_n, for every element or one per element; truncated toward zero, and a negative degree gives 0.

Returns

Tensor

Wn∗(x)=Wn(2x−1)W^*_n(x) = W_n(2x - 1), element-wise, broadcast over x and n.

Notes

Wn∗(x)=Wn(2x−1)W^*_n(x) = W_n(2x - 1).

Examples

>>> import lucid
>>> from lucid.special import shifted_chebyshev_polynomial_w
>>> shifted_chebyshev_polynomial_w(lucid.tensor([0.0, 1.0]), n=1)
tensor([-1., 3.])

Used by 1