MultivariatePowerSeries
SumOfAllMonomials
get the power series representing the sum of all monomials over a set of variables
Calling Sequence
Parameters
Description
Examples
Compatibility
SumOfAllMonomials(x)
x
-
list of variables
The command SumOfAllMonomials(x) returns the power series containing each monomial in the variables x with coefficient 1; that is, its homogeneous part of degree d is the sum of all monomials of degree d.
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:
We create a power series that is the sum of all monomials in x, and compute its homogeneous part of degree 2 and its truncation at precision 4.
a≔SumOfAllMonomials⁡x
a≔PowⅇrSⅇrⅈⅇs of 11−x : 1+x+…
HomogeneousPart⁡a,2
x2
Truncate⁡a,4
x4+x3+x2+x+1
We create a power series that is the sum of all monomials in x, y, and/or z. We compute its homogeneous part of degree 2 and its truncation at precision 3.
b≔SumOfAllMonomials⁡x,y,z
b≔PowⅇrSⅇrⅈⅇs of 11−x⁢1−y⁢1−z : 1+x+y+z+…
HomogeneousPart⁡b,2
x2+y⁢x+z⁢x+y2+z⁢y+z2
Truncate⁡b,3
x3+x2⁢y+x2⁢z+x⁢y2+x⁢y⁢z+x⁢z2+y3+y2⁢z+y⁢z2+z3+x2+y⁢x+z⁢x+y2+z⁢y+z2+x+y+z+1
The MultivariatePowerSeries[SumOfAllMonomials] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
See Also
GeometricSeries
HomogeneousPart
Truncate
Download Help Document