Set display style for a particular power series or univariate polynomial over power series
Set global display style for power series and univariate polynomial over power series
power series generated by this package
univariate polynomial over power series generated by this package
list of equation(s) of the form option = value where option can be maxterms, precision, or maxdegree, and value is either a nonnegative integer or infinity
Whenever a power series or univariate polynomial over power series is displayed, whether simply as the result of a computation or by an explicit call to the Display command, Maple uses some parameters to determine which terms to show and which terms to elide. These parameters and their settings are called a display style.
Display style settings can come from four different sources.
When calling the Display command, you can specify a display style explicitly. This overrides all other settings.
If no display style is specified, or when displaying the result of a computation without a call to Display, Maple uses the display style set for the specific power series or univariate polynomial over power series that is to be displayed, if any is set. This is done with the SetDisplayStyle command, as explained below.
Otherwise, Maple uses the style last set using the SetDefaultDisplayStyle command, if any. This, too, is explained below.
Finally, if no display style is set, Maple uses its default values, described together with the individual parameters below.
If some parameters are specified in a display style d1 that is overridden by a different display style d2, then Maple will completely ignore d1. Any parameters that are not set in d1 will get their default values.
When displaying a computation result or calling Display, the display style can only limit the terms displayed. It will never cause extra terms to be computed.
Details of the calling sequences
SetDisplayStyle(p, d) sets the display style of the power series p with the settings given by the list d. The argument d is a list of zero or more equations of the form maxterms=n or precision=n, where n is either a nonnegative integer or the symbol infinity.
SetDisplayStyle(u, d) sets the display style of the univariate polynomial over power series u with the settings given by the list d. The argument d can take the same entries as for SetDisplayStyle(p, d), but additionally, the option maxdegree=n can be used.
SetDefaultDisplayStyle(d) sets the default display style for all power series and univariate polynomials over power series. In this case d can specify all three options: maxterms, precision, and maxdegree. Only the first two are applied to power series; all three are applied to univariate polynomials over power series.
The parameters making up a display style
maxterms (default value: 50)
Applicable to power series and univariate polynomials over power series.
This parameter sets the maximum number of terms to be displayed. For a power series, this is straightforward. For a univariate polynomial over power series, the terms in each of the coefficients (which are power series) are counted.
precision (default value: infinity)
This parameter limits the precision, that is, the homogeneous degree of terms to be displayed. Again, for a power series this is straightforward. For a univariate polynomial over power series, the degree in the main variable is not counted, only the degrees in the coefficients.
maxdegree (default value: infinity)
Applicable to univariate polynomials over power series only, not to power series.
This parameter limits the degree of the main variable for displayed terms. If the degree of the univariate polynomial over power series in its main variable is greater than the specified value, then the rest is elided.
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.
We define two power series and tell Maple to compute their expansion up to homogeneous degree 10.
a≔PowⅇrSⅇrⅈⅇs of 11−x−y : 1+x+y+…
b≔PowⅇrSⅇrⅈⅇs of 11−x : 1+x+…
If we update the default display style to set the precision to 5, then a and b are displayed using that style.
PowⅇrSⅇrⅈⅇs of 11−x−y : 1+x+y+x2+2⁢x⁢y+y2+x3+3⁢x2⁢y+3⁢x⁢y2+y3+x4+4⁢x3⁢y+6⁢x2⁢y2+4⁢x⁢y3+y4+x5+5⁢x4⁢y+10⁢x3⁢y2+10⁢x2⁢y3+5⁢x⁢y4+y5+…
PowⅇrSⅇrⅈⅇs of 11−x : 1+x+x2+x3+x4+x5+…
We can override this for, say, a, by setting its display style differently.
PowⅇrSⅇrⅈⅇs of 11−x−y : 1+x+y+x2+2⁢x⁢y+y2+x3+3⁢x2⁢y+3⁢x⁢y2+y3+x4+4⁢x3⁢y+6⁢x2⁢y2+4⁢x⁢y3+y4+x5+5⁢x4⁢y+10⁢x3⁢y2+10⁢x2⁢y3+5⁢x⁢y4+…+…
This does not affect the display of b.
If we specify a display style in a Display call, that overrides the display style set in a.
PowⅇrSⅇrⅈⅇs of 11−x−y : 1+x+y+x2+2⁢x⁢y+y2+x3+3⁢x2⁢y+3⁢x⁢y2+y3+…
We also define a univariate polynomial over power series and ensure each coefficient is known to precision 10.
The default display is as follows.
If we are only interested in terms of f that are at most linear in the main variable, we can use the maxdegree parameter.
The MultivariatePowerSeries[SetDisplayStyle] and MultivariatePowerSeries[SetDefaultDisplayStyle] commands were introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
Download Help Document
What kind of issue would you like to report? (Optional)