MultivariatePowerSeries/Variables - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : MultivariatePowerSeries/Variables

MultivariatePowerSeries

  

Variables

  

Return the variables in a power series or univariate polynomial over power series

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Variables(p)

Variables(u)

Parameters

p

-

power series generated by this package

u

-

univariate polynomial over power 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(u), where p is a univariate polynomial over power 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 and univariate polynomials over power 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.

cPowerSeriesdxdd!,analytic=expx

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

(5)

Variablesc

x

(6)

If we define a power series a 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)

Compatibility

• 

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

• 

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

See Also

MainVariable

MultivariatePowerSeries

PowerSeries

UnivariatePolynomialOverPowerSeries