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

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/ratseq

type/ratseq - tests an expression to determine if it defines a sequence encoded by a rational generating function

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,'ratseq'n

true

(1)

typen2n+3n3,'ratseq'n

true

(2)

type2n2,'ratseq'n

false

(3)

type1m,'ratseq'm

false

(4)

See Also

genfunc, genfunc/rgf_encode, genfunc/rgf_expand


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam