Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
gfun[listtorec] - find a recurrence for the elements
gfun[seriestorec] - find a recurrence for the coefficients of a series
Calling Sequence
listtorec(l, u(n), [typelist])
seriestorec(s, u(n), [typelist])
Parameters
l
-
list
u
name; function name
n
name; variable of the function u
typelist
(optional) list of generating function types. The default is 'ogf','egf'. For a complete list of types, see gftypes.
s
series
Description
The listtorec(l, u(n), [typelist]) command computes a linear recurrence with polynomial coefficients satisfied by the expressions in l. A normalization is specified by typelist, for example, ordinary (ogf) or exponential (egf). For a complete list of available generating function types, see gftypes.
You should specify as many terms as possible in the list l.
The seriestorec(s, u(n), [typelist]) command computes a linear recurrence with polynomial coefficients satisfied by the expressions in s. A normalization is specified by typelist, for example, ordinary (ogf) or exponential (egf). For a complete list of available generating function types, see gftypes.
You should specify as many terms as possible in the series s.
If typelist contains more than one element, these types are considered in the order that they are listed.
If typelist is not specified, the default typelist, 'ogf','egf', is used.
The function returns a list whose first element is a set containing the recurrence and its initial conditions. The second element is the generating function type to which it corresponds.
Examples
See Also
gfun, gfun/gftypes, gfun/parameters
Download Help Document