Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語 -
Справка Scilab >> Polynomials > chepol

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¹⁰
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:39:55 CET 2022