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

Online Help

All Products    Maple    MapleSim


type/ratseq

tests an expression to determine if it defines a sequence encoded by a rational generating function

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, 'ratseq'(n))

Parameters

expr

-

expression for the nth term in a sequence

n

-

name, index variable of the sequence

Description

• 

Determines if the sequence whose nth term is expr has a rational generating function. Such sequences are constructed from polynomials in n and constants to a linear power of n using the operations addition, subtraction, and multiplication.

Examples

> 

type⁡n−1⁢23⁢n+1,ratseq⁡n

true

(1)
> 

type⁡n⁢2n+3−n3,ratseq⁡n

true

(2)
> 

type⁡2n2,ratseq⁡n

false

(3)
> 

type⁡1m,ratseq⁡m

false

(4)

See Also

genfunc

genfunc/rgf_encode

genfunc/rgf_expand