Back to functions

partfrac


partial fractions

Performs partial fraction decomposition

Usage: nerdamer("partfrac(expression, x)")


Parameters

expression expression The expression for which the partrial fractions are to be found.
expression x The variable for which the partial fractions are to be found.

Returns

Vector

EXAMPLES:
var x = nerdamer('partfrac((x^2+a)/(x*(x-1)^3), x)');
console.log(x.toString())
var y = nerdamer('partfrac(1/(x^6+x^5),x)');
console.log(y.toString());
OUTPUT:
(-1+x)^(-1)*a+(-1+x)^(-2)*(-a+1)+(-1+x)^(-3)*(1+a)-a*x^(-1)
-(1+x)^(-1)-x^(-2)-x^(-4)+x^(-1)+x^(-3)+x^(-5)
Back to functions