MultivariatePowerSeries
Add
add multivariate power series or multivariate Puiseux series or univariate polynomials over power series or over Puiseux series
Calling Sequence
Parameters
Description
Examples
References
Compatibility
p1 + p2
Add(P)
Add(P, coefopt)
u1 + u2
Add(U)
s1 + s2
Add(S)
p1, p2
-
power series generated by this package, polynomials, or complex constants
P
sequence of power series generated by this package, polynomials, and complex constants
coefopt
(optional) equation of the form coefficients = C, where coefficients is a keyword and C is a list of polynomials and complex constants
u1, u2
univariate polynomials over power series or over Puiseux series generated by this package which have the same main variable, power series generated by this package, polynomials, or complex constants
U
sequence of univariate polynomial over power series or over Puiseux series generated by this package which have the same main variable, power series generated by this package, polynomials, or complex constants
s1, s2
Puiseux series generated by this package with compatible order, univariate polynomials over power series generated by this package which have the same main variable, power series generated by this package or polynomials
S
sequence of Puiseux series generated by this package with compatible order, univariate polynomial over power series or over Puiseux series generated by this package which have the same main variable, power series generated by this package, or polynomials or constants.
p1 + p2 returns the sum of the terms p1 and p2. The result is a power series.
The calling sequence Add(P) returns the sum of the terms in P.
The calling sequence Add(P, coefficients = C) returns the sum of the products C[i] * P[i]. The length of the list C must be the same as the number of elements of P.
u1 + u2 returns the sum of the terms u1 and u2. The result is a univariate polynomial over power series or over Puiseux series.
The calling sequence Add(U) returns the sum of the entries of U. They are converted to univariate polynomials over power series in the same variable. If this is not possible, an error is raised. This may happen if there are univariate polynomials over power series in different variables. It can also happen if the univariate polynomials over power series all have the same main variable, say x, but one of the other arguments is a power series that is not known to be expressible as a polynomial in x. The same restrictions apply to the calling sequence u1 + u2.
s1 + s2 returns the sum of the terms s1 and s2 as long as their Puiseux series orders are compatible. The result is a Puiseux series.
Two variable orders are compatible if, whenever two variables occur in both orders, they occur in the same order. For example, x,y,z and t,x,z,w are compatible, because the only variables that occur in both orders are x and z, and x occurs before z in both orders.
The calling sequence Add(S) returns the sum of the entries of S as long as this is possible. They are converted to Puiseux series. If this is not possible, an error is raised.
When using the MultivariatePowerSeries package, do not assign anything to the variables occurring in the power series, Puiseux series, and univariate polynomials over these series. If you do, you may see invalid results.
with⁡MultivariatePowerSeries:
Create three power series.
a≔GeometricSeries⁡x,y:
b≔PowerSeries⁡1+x+y+z:
c≔PowerSeries⁡2⁢x⁢y+3⁢z3:
Create a power series representing the sum of a and b.
a+b
PowⅇrSⅇrⅈⅇs of 11−x−y+1+x+y+z : 2+2⁢x+2⁢y+z+…
Add 1 to a.
a+1
PowⅇrSⅇrⅈⅇs of 11−x−y+1 : 2+…
Add a, b, c, and the polynomial x⁢y⁢z+1.
Add⁡a,b,c,1+x⁢y⁢z
PowⅇrSⅇrⅈⅇs of 11−x−y+2+x+y+z+3⁢z3+2⁢x⁢y+x⁢y⁢z : 3+2⁢x+2⁢y+z+…
Compute a+5⁢b+10⁢c.
Add⁡a,b,c,coefficients=1,5,10
PowⅇrSⅇrⅈⅇs of 11−x−y+5+5⁢x+5⁢y+5⁢z+30⁢z3+20⁢x⁢y : 6+6⁢x+6⁢y+5⁢z+…
Create a univariate polynomial over power series, given by a polynomial.
f≔UnivariatePolynomialOverPowerSeries⁡x⁢z+y⁢z2+x⁢y⁢z3,z:
Add a polynomial to f. These two calling sequences are equivalent.
f+z+3
UnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 3+1+…⁢z+y⁢z2+x⁢y⁢z3
Add⁡f,z+3
Add a power series to f that is independent of z (and thus trivially polynomial in z).
f+GeometricSeries⁡x,y
UnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 1+…+x⁢z+y⁢z2+x⁢y⁢z3
Create a separate univariate polynomial over power series, and add it to f.
g≔UnivariatePolynomialOverPowerSeries⁡GeometricSeries⁡x,y,PowerSeries⁡3,z:
f+g
UnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 1+…+3+…⁢z+y⁢z2+x⁢y⁢z3
This will raise an error, because we're trying to add univariate polynomials over power series with different main variables.
h≔UnivariatePolynomialOverPowerSeries⁡GeometricSeries⁡x,y,PowerSeries⁡3,w:
f+h
Error, (in MultivariatePowerSeries:-Add) incompatible inputs: expect UnivariatePolynomialOverPowerSeries with the same main variable, but received w <> z
This also will not work, because Maple cannot determine that d is polynomial in z (though actually it is).
d≔PowerSeries⁡d↦ifelse⁡d=0,0,z⋅xd−1d−1!,variables=x,z
d≔PowⅇrSⅇrⅈⅇs: 0+…
f+d
Error, (in MultivariatePowerSeries:-Add) attempted to convert a power series involving z to a univariate polynomial over power series in z, but it is not known to be polynomial in z
We define e in the same way as d but specify the analytic expression, and then we can successfully add it to f.
e≔PowerSeries⁡d↦ifelse⁡d=0,0,z⋅xd−1d−1!,analytic=z⁢exp⁡x
e≔PowⅇrSⅇrⅈⅇs of z⁢ⅇx : 0+…
f+e
UnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 0+1+…⁢z+y⁢z2+x⁢y⁢z3
Create three Puiseux series.
s1≔PuiseuxSeries⁡PowerSeries⁡11+u,u=x−13⁢y2,x=3,y=−4
s1≔PuⅈsⅇuxSⅇrⅈⅇs of x31+y2x13⁢y4 : x3y4+…
s2≔PuiseuxSeries⁡2+2⁢u+v,u=x−12⁢y,v=y,x=3,y=2
s2≔PuⅈsⅇuxSⅇrⅈⅇs of 2+2⁢yx+2⁢y⁢x3⁢y2 : 2⁢x3⁢y2+2⁢x52⁢y3+2⁢y3⁢x3
s3≔PuiseuxSeries⁡PowerSeries⁡11+u⁢v,y,x,u,v,1,0,1,−12
s3≔PuⅈsⅇuxSⅇrⅈⅇs of 1y2x+1 : 1+…
We add s1 and s2.
s1+s2
PuⅈsⅇuxSⅇrⅈⅇs of 11+y2x13+2+…++2⁢y⁢y6⁢x3y4 : x3y4+…
We add a polynomial to s1.
s1+1+x⁢y
PuⅈsⅇuxSⅇrⅈⅇs of 11+y2x13+x⁢y+1⁢y4x3⁢x3y4 : x3y4+…
We can add s1 and the power series a. The result is a Puiseux series.
s1+a
PuⅈsⅇuxSⅇrⅈⅇs of 11+y2x13+y41−x−y⁢x3⁢x3y4 : x3y4+…
We can also add s1 and the univariate polynomial over power series f. The result is again a Puiseux series.
s1+f
PuⅈsⅇuxSⅇrⅈⅇs of 11+y2x13+…⁢…+…⁢y4x3⁢x3y4 : x3y4+…
We get an error if we try to add s1 and s3, since the orders x,y and y,x are not compatible.
s1+s3
Error, the order of Puiseux series [x, y] and [y, x] are not compatible
We can use the command GetPuiseuxSeriesOrder to obtain the Puiseux series order of s1 and s3.
GetPuiseuxSeriesOrder⁡s1
x,y
GetPuiseuxSeriesOrder⁡s3
y,x
Finally, we create a univariate polynomial over power series from a list of Puiseux series.
u≔UnivariatePolynomialOverPuiseuxSeries⁡PuiseuxSeries⁡1,PuiseuxSeries⁡0,PuiseuxSeries⁡x,x=x13,PuiseuxSeries⁡y,y=y12,PuiseuxSeries⁡x+y1+x+y,x=x⁢y12,y=x⁢y−1,z
u≔UnⅈvarⅈatⅇPolynomⅈalOvⅇrPuⅈsⅇuxSⅇrⅈⅇs: 1+0⁢z+x13⁢z2+y⁢z3+0+…⁢z4
Now we add u to f.
u+f
UnⅈvarⅈatⅇPolynomⅈalOvⅇrPuⅈsⅇuxSⅇrⅈⅇs: 1+0+…⁢z+0+…⁢z2+0+…⁢z3+0+…⁢z4
Monforte, A.A., & Kauers, M. "Formal Laurent series in several variables." Expositiones Mathematicae. Vol. 31 No. 4 (2013): 350-367.
The MultivariatePowerSeries[Add] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
The MultivariatePowerSeries[Add] command was updated in Maple 2023.
The s1, s2 and S parameters were introduced in Maple 2023.
For more information on Maple 2023 changes, see Updates in Maple 2023.
See Also
GeometricSeries
GetPuiseuxSeriesOrder
MainVariable
PowerSeries
PuiseuxSeries
Subtract
UnivariatePolynomialOverPowerSeries
Download Help Document