Function: partfrac (expr, var)
- Expands the expression expr in partial fractions.
-
(%i) partfrac(1/(s*(s-1)^2), s);
(%o) 1/s-1/(s-1)+1/(s-1)^2
(%i) partfrac(1/((s+2)^2*(s+3)), s);
(%o)1/(s+3)-1/(s+2)+1/(s+2)^2
(%i) partfrac(1/(s*((s+2)^2+1)), s);
(%o)1/(5*s)-(s+4)/(5*(s^2+4*s+5))