A few days ago I wrote about my solution for factoring a polynomial into factors corresponding to complex roots, factorC.

One of the uses for that utility is to perform a partial fractions decomposition of rational functions. Here’s a complex partial fraction function that uses **factorC** and the built-in Maxima function **partfrac**.

partfracC(_f,_z):=block( [d,fd], d:denom(_f), fd:factorC(d,_z), partfrac(1/fd,_z) );

Advertisements

## 1 thought on “Partial Fraction Decomposition Using Complex Factors”