MultiSeries
series
generalized series expansion
Calling Sequence
Parameters
Description
Examples
series(expr, x)
series(expr, x=a)
series(expr, x=a, n)
expr
-
algebraic expression
x
name; the series variable
a
(optional) algebraic expression; the expansion point
n
(optional) non-negative integer; the expansion order
The series function computes a truncated series expansion of expr, with respect to the variable x, about the point a, up to order n.
If a is not given, it defaults to 0. If a is infinity, then an asymptotic expansion is computed.
The series function of the MultiSeries package is intended to be used in the same manner as the top-level series function.
Like the series function, when the result is a power series expansion, it is returned using the series type and otherwise it is represented in ordinary sum-of-products form.
The underlying engine for computing expansions is the MultiSeries[multiseries] function. In particular, the variable x is assumed to tend to its limit point a in the manner described in MultiSeries[multiseries].
The precision n can be infinity. In that case, the computation will terminate either when the input is a polynomial or when it contains a O⁡... term. This last functionality provides a way to compute an expansion up to a given absolute precision.
The environment variable Order determines the default precision used in intermediate computations when the working precision n is not specified on input.
In rare cases, it might be necessary to increase the value of the global variable Order in order to improve the ability of series to solve problems with significant cancellation. This is made explicit by an error message coming from multiseries.
It can also happen that the result is wrong because Testzero failed to recognize that the leading coefficient of a multiseries expansion happens to be 0. In those cases, it is necessary to modify this environment variable (see Testzero).
with⁡MultiSeries,series:
series⁡x1−x−x2,x=0
x+x2+2⁢x3+3⁢x4+5⁢x5+O⁡x6
series⁡x+1x,x=1,3
2+x−12+O⁡x−13
series⁡exp⁡x,x=0,8
1+x+12⁢x2+16⁢x3+124⁢x4+1120⁢x5+1720⁢x6+15040⁢x7+O⁡x8
series⁡exp⁡xx,x=0,8
x−1+1+12⁢x+16⁢x2+124⁢x3+1120⁢x4+1720⁢x5+15040⁢x6+O⁡x7
series⁡Γ⁡x,x=0,2
x−1−γ+O⁡x
series⁡x3x4+4⁢x−5,x=∞
5x5−4x4+1x+O⁡1x7
series⁡xx,x=0,3
1−ln⁡1x⁢x+12⁢ln⁡1x2⁢x2+O⁡x3
series⁡sqrt⁡sin⁡x,x=0,4
x−x5212+O⁡x92
series⁡sin⁡x+O⁡x10,x,∞
x−16⁢x3+1120⁢x5−15040⁢x7+1362880⁢x9+O⁡x10
See Also
MultiSeries[asympt]
MultiSeries[LeadingTerm]
MultiSeries[limit]
MultiSeries[multiseries]
Order
Testzero
Download Help Document