Add - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


OrthogonalSeries

  

Add

  

add or form linear combination of series

 

Calling Sequence

Parameters

Description

Examples

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 aS1+S2 and aS1+bS2, 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:

S1Createn+1,Kravchoukn,p,q,x

S1n=0n+1Kravchoukn,p,q,x

(1)

S2Create1m,Kravchoukm,p,q,x

S2m=0Kravchoukm,p,q,xm

(2)

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

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

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

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

(3)

S3Create1n!,ChebyshevTn,x

S3n=0ChebyshevTn,xn!

(4)

AddS1,S3;AddS1,S3,control=false

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

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

(5)

S1Create1n!,n=2..8,ChebyshevTn,x

S1n=28ChebyshevTn,xn!

(6)

S2Create1n!,n=4..6,ChebyshevTn,x

S2n=46ChebyshevTn,xn!

(7)

AddS1,S2

ChebyshevT2,x2+ChebyshevT3,x6+ChebyshevT7,x5040+ChebyshevT8,x40320+n=462ChebyshevTn,xn!

(8)

S4Create1n!,n=2..,ChebyshevTn,x

S4n=2ChebyshevTn,xn!

(9)

S5Createm=4..,m!,ChebyshevTm,x

S5m=4m!ChebyshevTm,x

(10)

AddS4,S5

ChebyshevT2,x2+ChebyshevT3,x6+n=41n!+n!ChebyshevTn,x

(11)

S6Createun,m,ChebyshevTn,x,LaguerreLm,1,y

S6m=0n=0un,mChebyshevTn,xLaguerreLm,1,y

(12)

S7Createvn,m,ChebyshevTm,x,LaguerreLn,1,y

S7n=0m=0vn,mChebyshevTm,xLaguerreLn,1,y

(13)

AddS6,S7

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

(14)

See Also

ChebyshevT

LaguerreL

OrthogonalSeries

OrthogonalSeries[Create]