gfun[guessgf] - find a generating function from a list
gfun[guesseqn] - find a differential equation satisfied by the generating function
|
Calling Sequence
|
|
guessgf(L, x, [typelist])
guesseqn(L, y(x), [typelist])
|
|
Parameters
|
|
L
|
-
|
list
|
x
|
-
|
name
|
typelist
|
-
|
(optional) list of generating function types
|
y
|
-
|
name
|
|
|
|
|
Description
|
|
•
|
The guessgf(L, x) command finds a closed form for the generating function for the series defined by L.
|
•
|
You should specify as many terms as possible in the list L.
|
•
|
If typelist is specified, it indicates the type of generating functions, for example, ordinary (ogf) or exponential (egf), to try. If typelist contains more than one element, these types are considered in the order that they are listed. For a complete list of available generating function types, see gftypes.
|
•
|
If typelist is not specified, the default are ordinary and exponential generating functions, specified by the parameter .
|
•
|
The guessgf function does the following.
|
3.
|
Tries to find a linear differential equation with polynomial coefficients using listtodiffeq which is then passed to dsolve.
|
•
|
The guesseqn(L, y(x)) finds an equation satisfied by the generating function. The guesseqn function might succeed even if the guessgf function fails because it does not attempt to solve the equation in closed-form.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
>
|
|
| (3) |
|
|