chebdeg - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


numapprox

  

chebdeg

  

degree of a polynomial in Chebyshev form

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

chebdeg(p)

Parameters

p

-

expression assumed to be a Chebyshev series

Description

• 

Given a polynomial p expressed as a Chebyshev series, determine the degree of the polynomial (i.e. the largest k such that T⁡k,x appears as a basis polynomial).

• 

All Chebyshev basis polynomials T⁡k,x which appear must have the same second argument x (which can be any expression).

• 

The input polynomial must be in expanded form (i.e. a sum of products). Normally, each term in the sum contains one and only one T⁡k,x factor except that if there are terms in the sum containing no T⁡k,x factor then each such term t is interpreted to represent t⁢T⁡0,x (i.e. it is assumed to be a term of degree 0).

• 

The command with(numapprox,chebdeg) allows the use of the abbreviated form of this command.

Examples

> 

with⁡numapprox:

> 

Digits≔3:

> 

a≔chebyshev⁡sin⁡x,x:

> 

b≔chebyshev⁡cos⁡x,x:

> 

c≔a+b

c≔0.880⁢T⁡1,x−0.0391⁢T⁡3,x+0.000500⁢T⁡5,x+0.765⁢T⁡0,x−0.230⁢T⁡2,x+0.00495⁢T⁡4,x

(1)
> 

chebdeg⁡c

5

(2)
> 

d≔a+cj⁢T⁡j,x+ck⁢T⁡k,x

d≔0.880⁢T⁡1,x−0.0391⁢T⁡3,x+0.000500⁢T⁡5,x+cj⁢T⁡j,x+ck⁢T⁡k,x

(3)
> 

chebdeg⁡d

max⁡5,j,k

(4)
> 

assume⁡5<k&comma;k<j

> 

e≔1.2⁢y+cj⁢T⁡j&comma;x+a+ck⁢T⁡k&comma;x

e≔1.2⁢y+cj⁢T⁡j~&comma;x+0.880⁢T⁡1&comma;x−0.0391⁢T⁡3&comma;x+0.000500⁢T⁡5&comma;x+ck⁢T⁡k~&comma;x

(5)
> 

chebdeg⁡e

j~

(6)

See Also

numapprox[chebsort]

numapprox[chebyshev]

orthopoly[T]