add or form linear combination of series - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Power Series : OrthogonalSeries Package : OrthogonalSeries/Add

OrthogonalSeries[Add] - add or form linear combination of series

Calling Sequence

Add(S1, S2, a, b, optional_arg)

Parameters

S1, S2

-

orthogonal series

a, b

-

(optional) scalars

optional_arg

-

(optional) equation of the form control = true or false

Description

• 

The Add(S1, S2) calling sequence adds the series S1 and S2.

• 

The Add(S1, S2, a) and Add(S1, S2, a, b) calling sequences form the linear combinations S1a+S2 and S1a+S2b, respectively.

• 

S1 and S2 must have the same dimension. Each polynomial appearing in S1 must appear in S2 with the same variable(s). Otherwise, an error message is returned.  The indices of S1 and S2 may differ.  The indices of the result are those of S1.

• 

The default value of the control option is true. If the option control=false is used, the Add function assumes the polynomials of S2 are identical to those of S1. This allows faster addition if the series are known a priori to be compatible. However, if S1 and S2 are not compatible, it returns an incorrect result.

Examples

withOrthogonalSeries:

S1:=Createn+1,Kravchoukn,p,q,x

S1:=n=0∞n+1Kravchoukn,p,q,x

(1)

S2:=Create1m,Kravchoukm,p,q,x

S2:=m=0∞Kravchoukm,p,q,xm

(2)

AddS1,S2;AddS1,S2,a;AddS1,S2,a,b

n=0∞n+1+1nKravchoukn,p,q,x

n=0∞an+1+1nKravchoukn,p,q,x

n=0∞an+1+bnKravchoukn,p,q,x

(3)

S3:=Create1n!,ChebyshevTn,x

S3:=n=0∞ChebyshevTn,xn!

(4)

AddS1,S3;AddS1,S3,control=false

Error, (in OrthogonalSeries:-Add) Series incompatible for addition

n=0∞n+1+1n!Kravchoukn,p,q,x

(5)

S1:=Create1n!,n=2..8,ChebyshevTn,x

S1:=n=28ChebyshevTn,xn!

(6)

S2:=Create1n!,n=4..6,ChebyshevTn,x

S2:=n=46ChebyshevTn,xn!

(7)

AddS1,S2

12ChebyshevT2,x+16ChebyshevT3,x+15040ChebyshevT7,x+140320ChebyshevT8,x+n=462ChebyshevTn,xn!

(8)

S4:=Create1n!,n=2..∞,ChebyshevTn,x

S4:=n=2∞ChebyshevTn,xn!

(9)

S5:=Createm!,m=4..∞,ChebyshevTm,x

S5:=m=4∞m!ChebyshevTm,x

(10)

AddS4,S5

12ChebyshevT2,x+16ChebyshevT3,x+n=4∞1n!+n!ChebyshevTn,x

(11)

S6:=Createun,m,ChebyshevTn,x,LaguerreLm,1,y

S6:=m=0∞n=0∞un,mChebyshevTn,xLaguerreLm,1,y

(12)

S7:=Createvn,m,ChebyshevTm,x,LaguerreLn,1,y

S7:=n=0∞m=0∞vn,mChebyshevTm,xLaguerreLn,1,y

(13)

AddS6,S7

m=0∞n=0∞un,m+vm,nChebyshevTn,xLaguerreLm,1,y

(14)

See Also

ChebyshevT, LaguerreL, OrthogonalSeries, OrthogonalSeries[Create]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam