The simplest way to effect the long division in Maple is to invoke a partial-fraction decomposition. As a step in the decomposition, Maple carries out the long division.
•
|
Control-drag the rational function.
|
•
|
Context Panel:
Conversions≻Partial Fractions≻
|
|
|
|
|
The quotient () and remainder () can be read from the decomposition. Since the zeros of the divisor are the complex numbers , the divisor cannot be factored over the reals, and the fraction "remainder/divisor" cannot be further decomposed by the technique of partial fractions.
An alternate approach to determining the quotient and remainder, shown in Table 6.4.1(b), makes use of the quo command.
•
|
Control-drag the rational function.
|
•
|
Context Panel: Numerator (Denominator)
|
•
|
Context Panel: Assign to a Name≻ (d)
|
|
|
|
•
|
Context Panel: Evaluate and Display Inline
|
|
=
|
•
|
Context Panel: Evaluate and Display Inline
|
|
=
|
Table 6.4.1(b) Use of the quo command to find the quotient and remainder
|
|
|
The letter to which the remainder is assigned does not have to be "r", but it needs to have the single quotes around it in the quo command. If this name is already assigned and is unquoted, then a syntax error will result. The quotes serve to unassign the name, allowing the quo command to attach a new remainder to the name.
A final alternative for obtaining the partial-fraction decomposition of a rational function is the convert command with the option parfrac.
=
|
|
|