MultivariatePowerSeries
Copy
copy a power series, a Puiseux series, or univariate polynomial over these series
Calling Sequence
Parameters
Description
Examples
References
Compatibility
Copy(p)
Copy(s)
Copy(u)
p
-
power series generated by this package
s
Puiseux series generated by this package
u
univariate polynomial over power series or Puiseux series generated by this package
Copy(p), Copy(s), and Copy(u) return copies of p, s, and u, respectively. If the original object is subsequently modified (for example, by computing extra coefficients, or modifying the display style), these changes are not reflected in the copy, and vice versa. Note that the original object and its copy may share ancestors, such as power series or Puiseux series objects from which they were computed.
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 two power series, a and b.
a≔Inverse⁡PowerSeries⁡1+x−y:
b≔Inverse⁡PowerSeries⁡y2−x+1:
The power series c keeps a record of a and b as its ancestors.
c≔a+b
c≔PowⅇrSⅇrⅈⅇs of 11+x−y+1y2−x+1 : 2+…
d≔Copy⁡c
d≔PowⅇrSⅇrⅈⅇs of 11+x−y+1y2−x+1 : 2+…
We can set the display styles for c and d independently. We ensure that enough terms are computed to show the difference.
SetDisplayStyle⁡c,precision=7
precision=7
SetDisplayStyle⁡d,precision=4
precision=4
UpdatePrecision⁡c,7:UpdatePrecision⁡d,7:
c
PowⅇrSⅇrⅈⅇs of 11+x−y+1y2−x+1 : 2+y+2⁢x2−2⁢x⁢y+3⁢x2⁢y−5⁢y2⁢x+y3+2⁢x4−4⁢x3⁢y+3⁢x2⁢y2−4⁢x⁢y3+2⁢y4+5⁢x4⁢y−14⁢x3⁢y2+10⁢x2⁢y3−2⁢x⁢y4+y5+2⁢x6−6⁢x5⁢y+10⁢x4⁢y2−20⁢x3⁢y3+21⁢x2⁢y4−6⁢x⁢y5+7⁢x6⁢y−27⁢x5⁢y2+35⁢x4⁢y3−25⁢x3⁢y4+21⁢x2⁢y5−11⁢x⁢y6+y7+…
d
PowⅇrSⅇrⅈⅇs of 11+x−y+1y2−x+1 : 2+y+2⁢x2−2⁢x⁢y+3⁢x2⁢y−5⁢y2⁢x+y3+2⁢x4−4⁢x3⁢y+3⁢x2⁢y2−4⁢x⁢y3+2⁢y4+…
The power series d is a copy of c, however, they share a and b, therefore when more terms of c are computed, the precision of a and b will be updated too. Consequently, the computation of new terms of d must be cheaper as it does not involve computing the coefficients of a and b.
gc⁡:
CodeTools:-Usage⁡HomogeneousPart⁡c,500:
memory used=143.59MiB, alloc change=108.62MiB, cpu time=1.60s, real time=1.52s, gc time=216.32ms
Precision⁡a
500
Precision⁡b
Precision⁡c
Precision⁡d
7
CodeTools:-Usage⁡HomogeneousPart⁡d,500:
memory used=6.70MiB, alloc change=0 bytes, cpu time=22.00ms, real time=23.00ms, gc time=0ns
Monforte, A.A., & Kauers, M. "Formal Laurent series in several variables." Expositiones Mathematicae. Vol. 31 No. 4 (2013): 350-367.
The MultivariatePowerSeries[Copy] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
The MultivariatePowerSeries[Copy] command was updated in Maple 2023.
See Also
HomogeneousPart
Inverse
PowerSeries
Precision
PuiseuxSeries
Truncate
Download Help Document