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
numapprox[confracform] - convert a rational function to continued-fraction form
Calling Sequence
confracform(r)
confracform(r, x)
Parameters
r
-
procedure or expression representing a rational function
x
(optional) variable name appearing in r, if r is an expression
Description
This procedure converts a given rational function r into the continued-fraction form which minimizes the number of arithmetic operations required for evaluation.
If the second argument x is present then the first argument must be a rational expression in the variable x. If the second argument is omitted then either r is an operator such that yields a rational expression in y, or else r is a rational expression with exactly one indeterminate (determined via indets).
Note that for the purpose of evaluating a rational function efficiently (i.e. minimizing the number of arithmetic operations), the rational function should be converted to continued-fraction form. In general, the cost of evaluating a rational function of degree when each of numerator and denominator is expressed in Horner (nested multiplication) form, with the denominator made monic, is
mults/divs and adds/subtracts
whereas the same rational function can be evaluated in continued-fraction form with a cost not exceeding
The command with(numapprox,confracform) allows the use of the abbreviated form of this command.
Examples
The Horner form can be evaluated in 4 mults/divs
whereas the continued-fraction form can be evaluated in 2 mults/divs
See Also
convert/confrac, indets, numapprox[hornerform]
Download Help Document