OrthogonalSeries
Add
add or form linear combination of series
Calling Sequence
Parameters
Description
Examples
Add(S1, S2, a, b, optional_arg)
S1, S2
-
orthogonal series
a, b
(optional) scalars
optional_arg
(optional) equation of the form control = true or false
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 a⁢S1+S2 and a⁢S1+b⁢S2, 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.
with⁡OrthogonalSeries:
S1≔Create⁡n+1,Kravchouk⁡n,p,q,x
S1≔∑n=0∞⁡n+1⁢Kravchouk⁡n,p,q,x
S2≔Create⁡1m,Kravchouk⁡m,p,q,x
S2≔∑m=0∞⁡Kravchouk⁡m,p,q,xm
Add⁡S1,S2;Add⁡S1,S2,a;Add⁡S1,S2,a,b
∑n=0∞⁡n+1+1n⁢Kravchouk⁡n,p,q,x
∑n=0∞⁡a⁢n+1+1n⁢Kravchouk⁡n,p,q,x
∑n=0∞⁡a⁢n+1+bn⁢Kravchouk⁡n,p,q,x
S3≔Create⁡1n!,ChebyshevT⁡n,x
S3≔∑n=0∞⁡ChebyshevT⁡n,xn!
Add⁡S1,S3;Add⁡S1,S3,control=false
Error, (in OrthogonalSeries:-Add) Series incompatible for addition
∑n=0∞⁡n+1+1n!⁢Kravchouk⁡n,p,q,x
S1≔Create⁡1n!,n=2..8,ChebyshevT⁡n,x
S1≔∑n=28⁡ChebyshevT⁡n,xn!
S2≔Create⁡1n!,n=4..6,ChebyshevT⁡n,x
S2≔∑n=46⁡ChebyshevT⁡n,xn!
Add⁡S1,S2
ChebyshevT⁡2,x2+ChebyshevT⁡3,x6+ChebyshevT⁡7,x5040+ChebyshevT⁡8,x40320+∑n=46⁡2⁢ChebyshevT⁡n,xn!
S4≔Create⁡1n!,n=2..∞,ChebyshevT⁡n,x
S4≔∑n=2∞⁡ChebyshevT⁡n,xn!
S5≔Create⁡m=4..∞,m!,ChebyshevT⁡m,x
S5≔∑m=4∞⁡m!⁢ChebyshevT⁡m,x
Add⁡S4,S5
ChebyshevT⁡2,x2+ChebyshevT⁡3,x6+∑n=4∞⁡1n!+n!⁢ChebyshevT⁡n,x
S6≔Create⁡u⁡n,m,ChebyshevT⁡n,x,LaguerreL⁡m,1,y
S6≔∑m=0∞⁡∑n=0∞⁡u⁡n,m⁢ChebyshevT⁡n,x⁢LaguerreL⁡m,1,y
S7≔Create⁡v⁡n,m,ChebyshevT⁡m,x,LaguerreL⁡n,1,y
S7≔∑n=0∞⁡∑m=0∞⁡v⁡n,m⁢ChebyshevT⁡m,x⁢LaguerreL⁡n,1,y
Add⁡S6,S7
∑m=0∞⁡∑n=0∞⁡u⁡n,m+v⁡m,n⁢ChebyshevT⁡n,x⁢LaguerreL⁡m,1,y
See Also
ChebyshevT
LaguerreL
OrthogonalSeries[Create]
Download Help Document