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

Online Help

All Products    Maple    MapleSim


MultivariatePowerSeries

  

Multiply

  

multiply a list of power series or a list of univariate polynomial over power series or list of multivariate Puiseux series

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

p1 * p2

Multiply(P)

u1 * u2

Multiply(U)

s1 * s2

Multiply(S)

Parameters

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

u1, u2

-

univariate polynomials over power series or over Puiseux series generated by this package with the same main variable, power series generated by this package, polynomials, or complex constants

U

-

sequence of univariate polynomial over power series generated by this package with the same main variable, power series generated by this package, polynomials, and complex constants

s1, s2

-

Puiseux series generated by this package with compatible Puiseux series order, univariate polynomials over power series generated by this package with the same main variable, power series generated by this package, or polynomials

S

-

sequence of Puiseux series with compatible order, univariate polynomial over power series generated by this package with the same main variable, power series generated by this package, and polynomials

Description

• 

p1 * p2 returns the product of p1 and p2. The result is a power series.

• 

The calling sequence Multiply(P) returns the product of the factors in P.

• 

u1 * u2 returns the product of u1 and u2. The result is a univariate polynomial over power series.

• 

The calling sequence Multiply(U) returns the product of the factors in 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 product of the Puiseux series s1 and s2. If the orders of s1 and s2 are not compatible, an error is signaled. The result is a Puiseux series.

• 

The calling sequence Multiply(S) returns the product of the factors in S. They are converted to Puiseux series. If this is not possible, an error is signaled.

• 

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:

Create two power series.

aGeometricSeriesx,y:

bPowerSeries1+x+y+z:

Form their product.

ab

PowⅇrSⅇrⅈⅇs of 1+x+y+z1xy : 1+2x+2y+z+

(1)

One can also multiply a power series with a "plain" polynomial.

ax+y

PowⅇrSⅇrⅈⅇs of x+y1xy : x+y+

(2)

We create another power series, and multiply several power series and "plain" polynomials together.

cPowerSeries2xy+3z3:

dMultiplya,b,c,1+x+y

dPowⅇrSⅇrⅈⅇs of 1+x+y+z3z3+2xy1+x+y1xy : 0+

(3)

To inspect the truncation of this product to degree 2, we can use the Truncate command.

Truncated,2

2xy

(4)

We create a univariate polynomial over power series with main variable z. We can multiply such a polynomial with a power series that is known to be polynomial in z.

fUnivariatePolynomialOverPowerSeriesxz+yz2+xyz3,z:

fb

UnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 0+0+z+0+z2+0+z3+0+z4

(5)

We can also multiply this polynomial with another univariate polynomial over power series, if it is polynomial in z. The two calling sequences for this are equivalent, as suggested by the fact that h and k agree up to homogeneous degree 10.

gUnivariatePolynomialOverPowerSeriesGeometricSeriesx,y,z:

hfg

hUnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 0+x+z+y+z2+0+z3

(6)

kMultiplyf,g

kUnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 0+x+z+y+z2+0+z3

(7)

Truncatehk,10

0

(8)

Create three Puiseux series.

s1PuiseuxSeriesPowerSeries11+u,u=x13y2,x=3,y=4

s1PuⅈsⅇuxSⅇrⅈⅇs of x31+y2x13y4 : x3y4+

(9)

s2PuiseuxSeries2+2u+v,u=x12y,v=y,x=3,y=2

s2PuⅈsⅇuxSⅇrⅈⅇs of 2+2yx+2yx3y2 : 2x3y2+2x52y3+2y3x3

(10)

s3PuiseuxSeriesPowerSeries11+uv,y,x,u,v,1,0,1,12

s3PuⅈsⅇuxSⅇrⅈⅇs of 1y2x+1 : 1+

(11)

We multiply s1 and s2.

s1s2

PuⅈsⅇuxSⅇrⅈⅇs of 2+2yx+2yx61+y2x13y2 : 2x6y2+

(12)

We multiply s1 with a polynomial.

s11+xy

PuⅈsⅇuxSⅇrⅈⅇs of xy+1x31+y2x13y4 : x3y4+

(13)

We can multiply s1 and the power series a. The result is a Puiseux series.

s1a

PuⅈsⅇuxSⅇrⅈⅇs of x31+y2x131xyy4 : x3y4+

(14)

We can also multiply s1 and the univariate polynomial over power series f. The result is again a Puiseux series.

s1f

PuⅈsⅇuxSⅇrⅈⅇs of x+yz2+xzx31+y2x13y4 : 0+

(15)

We get an error if we try to multiply s1 and s3, since the orders [x,y] and [y,x] are not compatible.

s1s3

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.

GetPuiseuxSeriesOrders1

x,y

(16)

GetPuiseuxSeriesOrders3

y,x

(17)

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

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

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

(18)

Now we multiply u with f.

uf

UnⅈvarⅈatⅇPolynomⅈalOvⅇrPuⅈsⅇuxSⅇrⅈⅇs: 0+0+z+0+z2+0+z3+0+z4+0+z5+0+z6+0+z7

(19)

Compatibility

• 

The MultivariatePowerSeries[Multiply] command was introduced in Maple 2021.

• 

For more information on Maple 2021 changes, see Updates in Maple 2021.

• 

The MultivariatePowerSeries[Multiply] 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

Exponentiate

GeometricSeries

GetPuiseuxSeriesOrder

HomogeneousPart

MainVariable

PowerSeries

PuiseuxSeries