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

Online Help

All Products    Maple    MapleSim


MultivariatePowerSeries

  

Display

  

nicely display a power series or univariate polynomial over power series

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Display(p, d)

Display(u, d)

Parameters

p

-

power series generated by this package

u

-

univariate polynomial over power series generated by this package

d

-

(optional) list of equation(s) of the form option = value where option can be maxterms, precision, or (if the argument is a univariate polynomial over power series) maxdegree, and value is a non-negative integer or the symbol infinity

Description

• 

Display(p,d) displays the power series p in the style given by d. The argument d is a list of equations which contains either  maxterms=n or precision=m, or both. In those equations n and m are of type either nonnegint or infinity.

• 

If d is not provided, then the display style of p is taken from an earlier call of the form SetDisplayStyle(p,d), if any. Otherwise, the display style of p is taken from an earlier call of the form SetDefaultDisplayStyle(d), if any. Finally, if the given display style does not provide values for one (or both) of the settings, Maple uses the default values maxterms=50 and precision=infinity.

• 

The attribute maxterms sets the maximum number of terms of p to be displayed while the the attribute precision sets the maximum degree of the displayed terms.

• 

Using infinity for either n or m indicates that no limits for the number of terms, or their degree, is set.

• 

Display(u,d) displays the coefficients of the univariate polynomial over power series u in in the style given by d.  The argument d can take the same entries as for Display(p, d), but additionally, the option maxdegree=n can be used: it limits the maximum degree  of a displayed term with respect to the main variable of u only. Like for power series, Display uses d if provided; or otherwise the argument to an earlier call to SetDisplayStyle(u, d), if any; or otherwise the argument to SetDefaultDisplayStyle(d), if any; or finally, the same default values maxterms=50 and precision=infinity and additionally maxdegree=infinity.

• 

The limit on the number of terms enforced by the maxterms option is enforced for all terms of the coefficients of u together, the terms of the coefficient power series are not counted independently. Only nonzero terms are counted.

• 

The command Display will only ever display coefficients that were computed before; it does not cause computation of further coefficients.

• 

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:

Define a power series in x and y. Initially, only the constant and linear terms are computed, so these are shown.

aGeometricSeriesx,y

aPowⅇrSⅇrⅈⅇs of 11xy : 1+x+y+

(1)

Displaya

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

(2)

If we compute more terms (in this case, up to homogeneous degree 10), more terms will be displayed.

UpdatePrecisiona,10

PowⅇrSⅇrⅈⅇs of 11xy : 1+x+y+x2+2xy+y2+x3+3x2y+3xy2+y3+x4+4x3y+6x2y2+4xy3+y4+x5+5x4y+10x3y2+10x2y3+5xy4+y5+x6+6x5y+15x4y2+20x3y3+15x2y4+6xy5+y6+x7+7x6y+21x5y2+35x4y3+35x3y4+21x2y5+7xy6+y7+x8+8x7y+28x6y2+56x5y3+70x4y4+56x3y5+28x2y6+8xy7+y8+x9+9x8y+36x7y2+84x6y3+126x5y4++

(3)

The following calling sequence shows up to 20 terms and up to homogeneous degree 5. For this power series, there are a total of 21 terms of homogeneous degree less than or equal to 5, so it shows all but one of them.

Displaya,maxterms=20,precision=5

PowⅇrSⅇrⅈⅇs of 11xy : 1+x+y+x2+2xy+y2+x3+3x2y+3xy2+y3+x4+4x3y+6x2y2+4xy3+y4+x5+5x4y+10x3y2+10x2y3+5xy4++

(4)

If we omit the maxterms parameter, its default value is 50, so the following command shows all terms of homogeneous degree less than or equal to 5.

Displaya,precision=5

PowⅇrSⅇrⅈⅇs of 11xy : 1+x+y+x2+2xy+y2+x3+3x2y+3xy2+y3+x4+4x3y+6x2y2+4xy3+y4+x5+5x4y+10x3y2+10x2y3+5xy4+y5+

(5)

We can set the maxterms and precision parameters to  to show all currently computed terms.

Displaya,maxterms=,precision=

PowⅇrSⅇrⅈⅇs of 11xy : 1+x+y+x2+2xy+y2+x3+3x2y+3xy2+y3+x4+4x3y+6x2y2+4xy3+y4+x5+5x4y+10x3y2+10x2y3+5xy4+y5+x6+6x5y+15x4y2+20x3y3+15x2y4+6xy5+y6+x7+7x6y+21x5y2+35x4y3+35x3y4+21x2y5+7xy6+y7+x8+8x7y+28x6y2+56x5y3+70x4y4+56x3y5+28x2y6+8xy7+y8+x9+9x8y+36x7y2+84x6y3+126x5y4+126x4y5+84x3y6+36x2y7+9xy8+y9+x10+10x9y+45x8y2+120x7y3+210x6y4+252x5y5+210x4y6+120x3y7+45x2y8+10xy9+y10+

(6)

We define a univariate polynomial over power series. Its coefficients have very few terms precomputed, so Display doesn't show much.

fUnivariatePolynomialOverPowerSeriesSumOfAllMonomialsx,GeometricSeriesx,y,z:

Displayf

UnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 1+x++1+x+y+z

(7)

If we increase the precision (computing more terms), then Display will show more terms.

UpdatePrecisionf,10:

Displayf

UnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 1+x+x2+x3+x4+x5+x6+x7+x8+x9+x10++1+x+y+x2+2xy+y2+x3+3x2y+3xy2+y3+x4+4x3y+6x2y2+4xy3+y4+x5+5x4y+10x3y2+10x2y3+5xy4+y5+x6+6x5y+15x4y2+20x3y3+15x2y4+6xy5+y6+x7+7x6y+21x5y2+35x4y3+35x3y4+21x2y5+7xy6+y7+x8+8x7y+28x6y2++z

(8)

The maxdegree option cuts the display off after displaying the constant coefficient of the main variable, z.

Displayf,maxdegree=0,precision=5

UnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 1+x+x2+x3+x4+x5++

(9)

The SetDisplayStyle command makes future calls to Display use a given set of parameters.

SetDisplayStylef,maxterms=5

maxterms=5

(10)

Displayf

UnⅈvarⅈatⅇPolynomⅈalOvⅇrPowⅇrSⅇrⅈⅇs: 1+x+x2+x3+x4++

(11)

Compatibility

• 

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

• 

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

See Also

GeometricSeries

HomogeneousPart

MainVariable

SetDefaultDisplayStyle

SetDisplayStyle

Truncate