ratseq - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

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

typen123n+1,ratseqn

true

(1)

typen2n+3n3,ratseqn

true

(2)

type2n2,ratseqn

false

(3)

type1m,ratseqm

false

(4)

See Also

genfunc

genfunc/rgf_encode

genfunc/rgf_expand