partfrac takes as argument a rational fraction.
partfrac returns the partial fraction expansion of this rational fraction.
The partfrac command is equivalent to the convert command with parfrac (or partfrac or fullparfrac) as option (see also 5.22.24).
Find the partial fraction expansion of :
Output in real mode :
Output in complex mode: