MultivariatePowerSeries
Negate
negate a power series or a Puiseux series or a univariate polynomial over power series or over Puiseux series
Calling Sequence
Parameters
Description
Examples
Compatibility
-p
Negate(p)
-s
Negate(s)
-u
Negate(u)
p
-
power series generated by this package
s
Puiseux series generated by this package
u
univariate polynomial over power series or over Puiseux series generated by this package
The commands -p and Negate(p) return the additive inverse of the power series p.
The commands -s and Negate(s) return the additive inverse of the Puiseux series s.
The commands -u and Negate(u) return the additive inverse of the univariate polynomial over power series u.
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 and form its additive inverse in two ways.
a≔GeometricSeries⁡x,y,z
a≔PowⅇrSⅇrⅈⅇs of 11−x−y−z : 1+x+y+z+…
b≔−a
b≔PowⅇrSⅇrⅈⅇs of −11−x−y−z : −1+…
c≔Negate⁡a
c≔PowⅇrSⅇrⅈⅇs of −11−x−y−z : −1−x−y−z+…
We verify that the results are the same up to homogeneous degree 10.
ApproximatelyEqual⁡b,c,10
true
We create a univariate polynomial over power series and form its additive inverse.
f≔UnivariatePolynomialOverPowerSeries⁡z3−z2⁢x−2⁢x⁢y,z
f≔UnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: −2⁢x⁢y+0⁢z+−x⁢z2+1⁢z3
g≔−f
g≔UnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 0+…+0⁢z+0+…⁢z2+−1⁢z3
The additive inverse of g should be equal to f.
ApproximatelyEqual⁡f,Negate⁡g,10
Now we define a Puiseux series s and compute its additive inverse.
s≔PuiseuxSeries⁡x+y1+x+y,x=x⁢y12,y=x⁢y−1
s≔PuⅈsⅇuxSⅇrⅈⅇs of x⁢y+xy1+x⁢y+xy : 0+…
ns≔Negate⁡s
ns≔PuⅈsⅇuxSⅇrⅈⅇs of −x⁢y+xy1+x⁢y+xy : 0+…
Truncate⁡s+ns,20
0
Finally, we create a univariate polynomial over power series from a list of Puiseux series.
h≔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
h≔UnⅈvarⅈatⅇPolynomⅈalOvⅇrPuⅈsⅇuxSⅇrⅈⅇs: 1+0⁢z+x13⁢z2+y⁢z3+0+…⁢z4
We compute -h.
nh≔Negate⁡h
nh≔UnⅈvarⅈatⅇPolynomⅈalOvⅇrPuⅈsⅇuxSⅇrⅈⅇs: −1+0⁢z+−x13⁢z2+−y⁢z3+0+…⁢z4
Truncate⁡h+nh,20
The MultivariatePowerSeries[Negate] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
The MultivariatePowerSeries[Negate] command was updated in Maple 2023.
See Also
ApproximatelyEqual
GeometricSeries
Multiply
PowerSeries
PuiseuxSeries
Subtract
UnivariatePolynomialOverPowerSeries
Download Help Document