series - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


type/series

series data structure

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, series)

Parameters

expr

-

expression

Description

• 

The function type/series returns true if the value of expr is Maple's series data structure, explained below.

• 

The series data structure represents an expression as a truncated series in one specified indeterminate, expanded about a particular point. It is created by a call to the series function.

• 

op(0, expr), with expr of type series, returns x-a where x denotes the ``series variable'' and a denotes the particular point of expansion. op(2*i-1, expr) returns the ith coefficient (a general expression) and op(2*i, expr) returns the corresponding integer exponent.

• 

The exponents are ``word-size'' integers, in increasing order.

• 

The representation is sparse; zero coefficients are not represented.

• 

Usually, the final pair of operands in this data type are the special order symbol O(1) and the integer n which indicates the order of truncation. However, if the series is exact then there will be no order term, for example, the series expansion of a low-degree polynomial.

• 

Formally, the coefficients of the series are such that

k1x−aeps<|coeffi|<k2x−aeps

  

for some constants k1 and k2, for any 0<eps, and as x approaches a. In other words, the coefficients may depend on x, but their growth must be less than polynomial in x. O(1) represents such a coefficient, rather than an arbitrary constant.

• 

A zero series is immediately simplified to the integer zero.

Examples

> 

a≔series⁡sin⁡x&comma;x=0&comma;5

a≔x−16⁢x3+O⁡x5

(1)
> 

type⁡a&comma;series

true

(2)
> 

type⁡a&comma;taylor

true

(3)
> 

op⁡0&comma;a

x

(4)
> 

op⁡a

1,1,−16,3,O⁡1,5

(5)
> 

b≔series⁡1sin⁡x&comma;x=0&comma;5

b≔x−1+16⁢x+O⁡x3

(6)
> 

type⁡b&comma;series

true

(7)
> 

type⁡b&comma;taylor

false

(8)
> 

op⁡0&comma;b

x

(9)
> 

op⁡b

1,−1,16,1,O⁡1,3

(10)
> 

type⁡x3&comma;series

false

(11)
> 

series⁡sqrt⁡sin⁡x&comma;x=0&comma;4

x−x5212+O⁡x92

(12)
> 

type⁡&comma;series

false

(13)
> 

whattype⁡

`+`

(14)
> 

c≔series⁡xx&comma;x=0&comma;3

c≔1+ln⁡x⁢x+12⁢ln⁡x2⁢x2+O⁡x3

(15)
> 

type⁡c&comma;series

true

(16)
> 

type⁡c&comma;taylor

false

(17)
> 

op⁡0&comma;c

x

(18)
> 

op⁡c

1,0,ln⁡x,1,ln⁡x22,2,O⁡1,3

(19)
> 

d≔series⁡sin⁡x+y&comma;x=y&comma;2

d≔sin⁡2⁢y+cos⁡2⁢y⁢x−y+O⁡x−y2

(20)
> 

type⁡d&comma;series

true

(21)
> 

op⁡0&comma;d

x−y

(22)
> 

op⁡d

sin⁡2⁢y,0,cos⁡2⁢y,1,O⁡1,2

(23)

See Also

op

series

taylor

type

type/laurent

type/taylor