Skip to content
fn

shifted_chebyshev_polynomial_v

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

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

Chebyshev V polynomials of the third kind composed with x↦2x−1x \mapsto 2x - 1, yielding a basis orthogonal on [0,1][0, 1].

Parameters

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

Returns

Tensor

Vn∗(x)=Vn(2x−1)V^*_n(x) = V_n(2x - 1), element-wise, broadcast over x and n.

Notes

Vn∗(x)=Vn(2x−1)V^*_n(x) = V_n(2x - 1).

Examples

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

Used by 1