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
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 function name argument F can have a parameter of the form , where a is a positive integer and b is an integer. This pattern represents the index of the nth term in the sequence. Simplification will be done relative to the nth occurrence of this pattern. If the pattern is invalid or does not match any sequence occurrence in the expression, the unmodified expression is returned. The defaults are and .
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
See Also
collect, genfunc
Download Help Document