﻿功能:求第一类切比雪夫多项式(Chebyshev polynomials)

格式:
PolyChebyshevT(n,x)
PolyChebyshevT(n)
n:一个不小于0的整数变量,表示求Chebyshev多项式的最高次数
x:矩阵变量或者数据变量,当为矩阵变量时,多矩阵中每个元素进行操作.相当于求Chebyshev多项式中变量值为x对应的值

注意:PolyChebyshevT(n,x)返回的是数值;PolyChebyshevT(n)返回的是对应的Chebyshev多项式的表达式,此时相当于函数{PolyCreate<矩阵运算\PolyCreate>}(3,n).在这里注意本函数与第二类切比雪夫多项式{PolyChebyshevU<矩阵运算\PolyChebyshevU>}的区别

关于:{Chebyshev多项式<http://en.wikipedia.org/wiki/Chebyshev_polynomials>}

例子:

express=PolyChebyshevT(4)//回车后返回一个最高次数为4的多项式
express = "8*x^4-8*x^2+1"

value=PolyChebyshevT(5,4.5789)//计算5次时对应的值
value =
[ 30308.0238195905 ]

a =
[ 13.2780314019313     58.5843964752669     51.5978809220707     71.0786132472933
  58.6208345175818     8.80613276213693     52.1611954328423     86.8221757872133
  17.4662734928849     14.6429677096396     56.1300644446770     70.9662274322315
  33.8246215758029     16.6818595103369     40.6487107931863     50.3546165071217 ]
PolyChebyshevT(6,a)//计算6次时,对应的值
ans =
[ 173879865.661685     1293158957446.49     603526649660.356     4125292072639.66
  1297993049666.35     14635916.8894999     644162932596.239     13704006157095.1
  904093832.216530     313242781.681194     1000268126459.99     4086306414255.56
  47860593597.5085     685918716.234599     144223584869.646     521349279454.984 ]