Negate - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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

Calling Sequence

-p

Negate(p)

-s

Negate(s)

-u

Negate(u)

Parameters

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

Description

• 

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.

Examples

withMultivariatePowerSeries:

We create a power series and form its additive inverse in two ways.

aGeometricSeriesx,y,z

aPowⅇrSⅇrⅈⅇs of 11xyz : 1+x+y+z+

(1)

ba

bPowⅇrSⅇrⅈⅇs of 11xyz : −1+

(2)

cNegatea

cPowⅇrSⅇrⅈⅇs of 11xyz : −1xyz+

(3)

We verify that the results are the same up to homogeneous degree 10.

ApproximatelyEqualb,c,10

true

(4)

We create a univariate polynomial over power series and form its additive inverse.

fUnivariatePolynomialOverPowerSeriesz3z2x2xy,z

fUnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 2xy+0z+xz2+1z3

(5)

gf

gUnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 0++0z+0+z2+−1z3

(6)

The additive inverse of g should be equal to f.

ApproximatelyEqualf,Negateg,10

true

(7)

Now we define a Puiseux series s and compute its additive inverse.

sPuiseuxSeriesx+y1+x+y,x=xy12,y=xy1

sPuⅈsⅇuxSⅇrⅈⅇs of xy+xy1+xy+xy : 0+

(8)

nsNegates

nsPuⅈsⅇuxSⅇrⅈⅇs of xy+xy1+xy+xy : 0+

(9)

Truncates+ns,20

0

(10)

Finally, we create a univariate polynomial over power series from a list of Puiseux series.

hUnivariatePolynomialOverPuiseuxSeriesPuiseuxSeries1,PuiseuxSeries0,PuiseuxSeriesx,x=x13,PuiseuxSeriesy,y=y12,PuiseuxSeriesx+y1+x+y,x=xy12,y=xy1,z

hUnⅈvarⅈatⅇPolynomⅈalOvⅇrPuⅈsⅇuxSⅇrⅈⅇs: 1+0z+x13z2+yz3+0+z4

(11)

We compute -h.

nhNegateh

nhUnⅈvarⅈatⅇPolynomⅈalOvⅇrPuⅈsⅇuxSⅇrⅈⅇs: −1+0z+x13z2+yz3+0+z4

(12)

Truncateh+nh,20

0

(13)

Compatibility

• 

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