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

Online Help

All Products    Maple    MapleSim


MultivariatePowerSeries

  

Variables

  

return the variables in a power series or a Puiseux series or univariate polynomial over power series or over Puiseux series

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Variables(p)

Variables(s)

Variables(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 command Variables(p), where p is a power series object created by the MultivariatePowerSeries package, returns the variables occurring in p.

• 

The command Variables(s), where s is a Puiseux series object created by the MultivariatePowerSeries package, returns the variables occurring in s.

• 

The command Variables(u), where p is a univariate polynomial over power series or over Puiseux series created by the MultivariatePowerSeries package, returns the variables occurring in u (its main variable and the variables occurring in all coefficients).

• 

Not every variable name returned by the Variables command needs to actually occur in p or u, however, every variable that occurs in p or u is returned by the Variables command.

• 

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 a power series from a polynomial. The variables in a are the variables in the polynomial.

aPowerSeries1+x+xy+x2

aPowⅇrSⅇrⅈⅇs: 1+x+x2+xy

(1)

Variablesa

x,y

(2)

Create a power series from a procedure. The variables in b are specified manually.

bproc := proc(d) local s; s := 2*x + y; return expand(s^d); end proc:

bPowerSeriesbproc,variables=x,y

bPowⅇrSⅇrⅈⅇs: 1+

(3)

Variablesb

x,y

(4)

Create a power series from a procedure. The variables in c are the variables occurring in the analytic expression.

cPowerSeriesd→xdd!,analytic=ⅇx

cPowⅇrSⅇrⅈⅇs of ⅇx : 1+

(5)

Variablesc

x

(6)

If we define a power series as c times its inverse, then the power series is equal to 1, so no variables actually occur in it. However, the Variables command will still return the variable x occurring in c.

dcInversec

dPowⅇrSⅇrⅈⅇs: 1

(7)

Variablesd

x

(8)

Create a univariate polynomial over power series. The variables in u are the variables in its coefficients, together with the main variable.

uUnivariatePolynomialOverPowerSeriesa,b,c,z

uUnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 1+x+x2+xy+1+z+1+z2

(9)

Variablesu

x,y,z

(10)

Create a univariate polynomial over Puiseux series from a list of Puiseux series.

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

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

(11)

We verify the variables of g.

Variablesg

x,y,z

(12)

Finally, we define a Puiseux series s and verify its variables.

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

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

(13)

Variabless

x,y

(14)

Compatibility

• 

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

• 

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

• 

The MultivariatePowerSeries[Variables] command was updated in Maple 2023.

See Also

MainVariable

MultivariatePowerSeries

PowerSeries

PuiseuxSeries

UnivariatePolynomialOverPowerSeries