|
inlineconstexpr |
Computes the value of the Tchebytchev polynomial of order n
at x
:
Defined in header
Parameters
Return value
The value of the polynomial at x
is returned.
The expression kind_1(tchebytchev)(n,x)
is identical to tchebytchev(n,x)
. The expression kind_2(tchebytchev)(n,x)
evaluates the nth polynomial of tchebytchev of second kind \( \displaystyle U_n(x) = \frac{\sin(n\arccos x)}{\sin(\arccos x)}\) at x
on \([-1, +1]\).
Example
The expression successor(tchebytchev)( x, tn, tnm1)
computes the value of \(T_{n+1}(x)\) knowing the values tn = \(T_n(x)\) and tnm1 = \(T_{n-1}(x)\),
This function can be used to create a sequence of values evaluated at the same x
and for rising n
.
Example