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
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?