﻿功能:创建一个符号多项式句柄(创建多项式)

格式:
polycreate(a)
polycreate(type,n)

说明:

一、a为矩阵,polycreate(a)将按a里的元素依行取出来组成多项式的系数

二、polycrate(type,n)创建n次指定类型(type)的多项式.type=1表示laguerre多项式;type=2表示Legendre多项式;type=3表示第一类Chebyshev多项式;type=4表示Hermite多项式;type=5表示第二类Chebyshev多项式;type=6表示Fibonacci多项式;type=7表示Bernoulli多项式;type=8表示Lucas多项;type=9表示Spread多项式;type=10表示Tourchard多项式式;type=11表示Pell多项式;type=12表示Rook多项式;type=20表示Bell多项式;Type=21表示Bessel多项式.

例子:

1、
a =
 [ 5.28516870703789   9.21775892340474   2.21787273987097
   4.44064330050752   6.05137301425048   2.12127828138009]
polycreate(a)//回车得到如下结果
ans=
"5.28516870703789*x^5+9.21775892340474*x^4+2.21787273987097*x^3+4.44064330050752*x^2+6.05137301425048*x+2.12127828138009"

2、
polycreate(2,8)//回车得到如下结果
ans=
"50.2734375*x^8-93.84375*x^6+54.140625*x^4-9.84375*x^2+0.2734375"//这就是8次Legendre多项式