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 2.21.23).
Find the partial fraction expansion of :
Output in real mode :
Output in complex mode: