MultivariatePowerSeries/UnivariatePolynomialOverPowerSeries - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : MultivariatePowerSeries/UnivariatePolynomialOverPowerSeries

MultivariatePowerSeries

  

UnivariatePolynomialOverPowerSeries

  

Create a univariate polynomial over power series

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

UnivariatePolynomialOverPowerSeries(lp,v)

UnivariatePolynomialOverPowerSeries(p,v)

UnivariatePolynomialOverPowerSeries(ps, v)

UnivariatePolynomialOverPowerSeries(u)

UnivariatePolynomialOverPowerSeries(u, v)

Parameters

lp

-

list, Array, or Vector of power series generated by this package

v

-

variable

p

-

polynomial

ps

-

power series generated by this package

u

-

univariate polynomial over power series generated by this package

Description

• 

The function call UnivariatePolynomialOverPowerSeries(lp,v) creates a univariate polynomial over power series with main variable v and with coefficients that are power series from lp. The degree of the resulting polynomial is equal to the length of lp minus one. The coefficient of v^(i-1) is the i-th element of lp. In particular, the first element of lp is the constant coefficient. The main variable, v, cannot occur in any of the power series in lp.

• 

The function call UnivariatePolynomialOverPowerSeries(p,v) creates a univariate polynomial with power series coefficients. It returns the same result as UnivariatePolynomialOverPowerSeries(lp,v) where lp := [seq(PowerSeries(coeff(p,v,i)),i=0..degree(p,v))].

• 

The function call UnivariatePolynomialOverPowerSeries(ps, v) creates a univariate polynomial over power series representing ps, with v as its main variable. This is only possible if ps is known to be a polynomial function of v, which is the case if it is independent of v (in which case it is trivially polynomial) or if the analytic expression for ps is known and it is polynomial in v. If neither of the former two cases is true, then an error is raised.

• 

The function call UnivariatePolynomialOverPowerSeries(u, v) copies u. You may omit v in this case, but if you specify it, it must be equal to the main variable of u.

• 

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 univariate polynomial over power series from a list of power series.

fUnivariatePolynomialOverPowerSeriesPowerSeries1,PowerSeries0,PowerSeriesx,PowerSeriesy,1PowerSeries1+x+y,z

fUnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 1+0z+xz2+yz3+1+z4

(1)

Degreef

4

(2)

seqGetCoefficientf,i,i=0..4

PowⅇrSⅇrⅈⅇs: 1,PowⅇrSⅇrⅈⅇs: 0,PowⅇrSⅇrⅈⅇs: x,PowⅇrSⅇrⅈⅇs: y,PowⅇrSⅇrⅈⅇs of 11+x+y : 1+

(3)

We compute its linear and quadratic truncation. These are defined in terms of the homogeneous degree of the coefficients, ignoring the degree in the main variable.

Truncatef,1

1+1xyz4+yz3+xz2

(4)

Truncatef,2

1+x2+2xy+y2xy+1z4+yz3+xz2

(5)

Create a univariate polynomial over power series from a polynomial

pz1z2z3+xz2+z

pz1z2z3+xz2+z

(6)

UnivariatePolynomialOverPowerSeriesp,z

UnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: −6+11+xz+−6+xz2+1z3

(7)

The following attempt will not work, because Maple cannot determine that d is polynomial in z (though actually it is).

dPowerSeriesdifelsed=0,0,zxd1d1!,variables=x,z

dPowⅇrSⅇrⅈⅇs: 0+

(8)

UnivariatePolynomialOverPowerSeriesd,z

Error, (in MultivariatePowerSeries:-UnivariatePolynomialOverPowerSeries) attempted to convert a power series involving z to a univariate polynomial over power series in z, but it is not known to be polynomial in z

We define e in the same way as d but specify the analytic expression. Then we can successfully convert it to a univariate polynomial over power series.

ePowerSeriesdifelsed=0,0,zxd1d1!,analytic=zexpx

ePowⅇrSⅇrⅈⅇs of zⅇx : 0+

(9)

kUnivariatePolynomialOverPowerSeriese,z

kUnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 0+1+z

(10)

To copy k, we can specify the main variable explicitly or omit it. If we specify it explicitly, it has to be z, otherwise we obtain an error:

k1UnivariatePolynomialOverPowerSeriesk,x

Error, (in MultivariatePowerSeries:-UnivariatePolynomialOverPowerSeries) you specified x as the main variable, but the main variable of the first argument is z

k1UnivariatePolynomialOverPowerSeriesk,z

k1UnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 0+1+z

(11)

k2UnivariatePolynomialOverPowerSeriesk

k2UnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 0+1+z

(12)

Compatibility

• 

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

• 

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

See Also

ApproximatelyEqual

Degree

Inverse

PowerSeries

Truncate