genfunc[rgf_simp] - simplify an expression involving a rational generating function sequence
|
Calling Sequence
|
|
rgf_simp(expr, Fz, z, F, n, options)
|
|
Parameters
|
|
expr
|
-
|
expression to simplify
|
Fz
|
-
|
rational generating function
|
z
|
-
|
name, generating function variable
|
F
|
-
|
name of function encoded by Fz
|
n
|
-
|
name, index variable of F
|
options
|
-
|
optional arguments
|
|
|
|
|
Description
|
|
•
|
This function simplifies occurrences of sequence F in expr. If F is defined by an order k recurrence then all occurrences of F whose index differs from n by an integer amount are simplified to expressions involving .
|
•
|
The simplified expression is expanded and the coefficients of are collected.
|
•
|
A procedure may be passed as an optional argument and is applied to each coefficient of the collected result.
|
•
|
An expression may be passed as an optional argument. Occurrences of F are matched against the pattern to determine a value for n. If this value for n differs from the optional argument by an integer amount, the term is simplified relative to the expression.
|
•
|
The command with(genfunc,rgf_simp) allows the use of the abbreviated form of this command.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
|
|
Download Help Document
Was this information helpful?