Scilab-Branch-6.1-GIT
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
chepol
Chebychev polynomials
Syntax
Tn = chepol(n, var)
Arguments
- n
integer : polynomial order
- var
string : polynomial variable
- Tn
polynomial in the variable
var
Description
Recursive implementation of Chebychev polynomial.
Tn=2*poly(0,var)*chepol(n-1,var)-chepol(n-2,var)
with
T0=1
and T1=poly(0,var)
.
Examples
for i = 1:10, p = chepol(i, "x"); disp(p), end
--> for i = 1:10, p = chepol(i, "x"); disp(p), end x -1 +2x² -3x +4x³ 1 -8x² +8x⁴ 5x -20x³ +16x⁵ -1 +18x² -48x⁴ +32x⁶ -7x +56x³ -112x⁵ +64x⁷ 1 -32x² +160x⁴ -256x⁶ +128x⁸ 9x -120x³ +432x⁵ -576x⁷ +256x⁹ -1 +50x² -400x⁴ +1120x⁶ -1280x⁸ +512x¹⁰
Report an issue | ||
<< bezout | Polinômios | cmndred >> |