XLPack 7.0
XLPack Numerical Library (Excel VBA) Reference Manual
Loading...
Searching...
No Matches

◆ Chebt()

Function Chebt ( N As  Long,
X As  Double,
Optional Info As  Long 
)

Chebyshev polynomial of first kind Tn(x)

Purpose
Computes the Chebyshev polynomial of the first kind Tn(x).
Tn(x) = cos(nt), where x = cos(t)
This polynomial follows the recurrence formula:
Tn+1(x) = 2xTn(x) - Tn-1(x), where T0(x) = 1 and T1(x) = x (n > 0)
Returns
Double
Chebyshev polynomial of first kind Tn(x).
Parameters
[in]NArgument n. (N >= 0)
[in]XArgument x.
[out]Info(Optional)
= 0: Successful exit.
= -1: The argument N had an illegal value. (N <= 0)
= 1: Floating point range error.
Reference
boost/math/special_functions