Previous Up Next

11.6.8 Polynomial and fractional part

The propfrac command rewrites a rational function as a polynomial plus a rational function whose numerator has smaller degree than the numberator; namely, it writes A(x)/B(x) (after reduction), as:

Q(x)+
R(x)
B(x)
  where R(x)=0 or 0≤ degree(R(x))< degree(B(x)).

(See also Section 7.2.2.)

Example

propfrac((5*x+3)*(x-1)/(x+2))
5 x−12+
21
x+2
          

Previous Up Next