Skip to content
fn

shifted_chebyshev_polynomial_u

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

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

Standard Chebyshev U polynomials shifted from [−1,1][-1, 1] onto the unit interval by x↦2x−1x \mapsto 2x - 1.

Parameters

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

Returns

Tensor

Un∗(x)=Un(2x−1)U^*_n(x) = U_n(2x - 1), element-wise, broadcast over x and n.

Notes

Un∗(x)=Un(2x−1)U^*_n(x) = U_n(2x - 1). Orthogonal on [0,1][0, 1] with weight x−x2\sqrt{x - x^2}.

Examples

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

Used by 1