MultivariatePowerSeries/PowerSeries - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : MultivariatePowerSeries/PowerSeries

MultivariatePowerSeries

  

PowerSeries

  

Create a power series

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

PowerSeries(p)

PowerSeries(f, opts)

PowerSeries(u)

PowerSeries(ps)

Parameters

p

-

polynomial

f

-

procedure

opts

-

(optional) equation(s) of the form option = value where option is one of analytic, check, variables, or expand; at least one of analytic and variables must be specified

u

-

univariate polynomial over power series

ps

-

power series generated by this package

Description

• 

The command PowerSeries(p), where p is a polynomial, creates a power series representing this polynomial. Concretely, the homogeneous part of degree i of this power series is equal to the sum of all terms of degree i in p.  In particular, the homogeneous part of degree i of that power series is zero, whenever i is greater than the degree of p. Note that the polynomial p can be a complex constant; in that case, p is regarded as a polynomial of degree zero.

• 

The function call PowerSeries(f, opts), where f is a procedure, creates a power series whose homogeneous part of degree i is equal to the value of the function call f(i). This assumes that the procedure f takes a non-negative integer as input and returns a polynomial as output.

– 

If the optional argument analytic=g is passed, where g is an algebraic expression, then the power series is assumed to be equal to g in a neighbourhood of the origin. There is no verification of this assumption.

– 

If the optional argument variables=s is passed, where s is a set of variable names, then the power series is a power series in the given variables. If this option is omitted, then the analytic option needs to be specified, and Maple determines the set of variables from that option. Either this option or the analytic option needs to be specified.

– 

By default, every time f is invoked, its result is verified to be a polynomial of the expected homogeneous degree in the given variables. If you know this is not necessary, you can include the optional argument check=false to disable these checks for greater efficiency.

– 

By default, every time f is invoked, its result is expanded. If you know that the value returned by f will always be expanded, you can include the optional argument expand=false to disable these calls for greater efficiency.

• 

The function call PowerSeries(u), where u is a univariate polynomial over power series, returns u as a power series. To be precise, if v is the main variable of u and its coefficients are power series with variables in the set of variables x, let y be the union of x with v. Then the power series returned by PowerSeries(u) is the image of u in the power series ring with variables in y. This image is obtained by the natural homomorphism mapping the univariate polynomial ring R[v] into the univariate power series ring R[[v]], where R is the ring of power series in variables in x.

• 

The function call PowerSeries(ps), where ps is a power series, returns a copy of ps.

• 

The implementation of power series and univariate polynomials over power series relies on lazy evaluation (also known as calls-by-need), see the page MultivariatePowerSeries for details.

• 

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, determine its inverse, and find its truncation to homogeneous degree 5.

aPowerSeries1+x+xy+x2

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

(1)

bInversea

bPowⅇrSⅇrⅈⅇs of 1x2+xy+x+1 : 1+

(2)

Truncateb,5

2x4y3x3y2x4x3y+x2y2+x3+2x2yxyx+1

(3)

Create a power series from a procedure and find its truncation to homogeneous degree 3.

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

bPowerSeriesbproc,variables=x,y

bPowⅇrSⅇrⅈⅇs: 1+

(4)

Truncateb,3

8x3+12x2y+6xy2+y3+4x2+4xy+y2+2x+y+1

(5)

Create a power series from an anonymous function, specifying the analytic form of that power series. Find the truncations to homogeneous degrees 5 and 10.

cPowerSeriesdxdd!,analytic=expx

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

(6)

Truncatec,5

1+x+12x2+16x3+124x4+1120x5

(7)

Truncatec,10

1+x+12x2+16x3+124x4+1120x5+1720x6+15040x7+140320x8+1362880x9+13628800x10

(8)

Create a power series from a univariate polynomial over power series.

fUnivariatePolynomialOverPowerSeriesPowerSeries1,PowerSeriesx,PowerSeriesy,GeometricSeriesx,y,z:

The truncation to homogeneous degree 2 is given by truncating each coefficient to that degree, ignoring fs main variable, z.

Truncatef,2

1+x2+2xy+y2+x+y+1z3+yz2+xz

(9)

If we convert f to a power series, its truncation is defined by considering the homogeneous degree in all variables, including z.

dPowerSeriesf

dPowⅇrSⅇrⅈⅇs of 1+xz+yz2+z31xy : 1+

(10)

Truncated,3

yz2+z3+xz+1

(11)

Copy a power series.

ePowerSeriesd

ePowⅇrSⅇrⅈⅇs of 1+xz+yz2+z31xy : 1+xz+yz2+z3+

(12)

Compatibility

• 

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

• 

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

See Also

GeometricSeries

Inverse

MultivariatePowerSeries

SumOfAllMonomials

Truncate

UnivariatePolynomialOverPowerSeries