Skip to content
fn

shifted_chebyshev_polynomial_t

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

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

Maps the standard Chebyshev T family from [−1,1][-1, 1] onto the unit interval [0,1][0, 1] via the linear substitution x↦2x−1x \mapsto 2x - 1. Useful when the natural domain of an approximation problem is [0,1][0, 1].

Parameters

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

Returns

Tensor

Tn∗(x)=Tn(2x−1)T^*_n(x) = T_n(2x - 1), element-wise, broadcast over x and n.

Notes

Definition: Tn∗(x)=Tn(2x−1)T^*_n(x) = T_n(2x - 1). Inherits orthogonality on [0,1][0, 1] with weight 1/x−x21/\sqrt{x - x^2}.

Examples

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

Used by 1