Polynomials

Expand(expr)

Expand(expr) : expands a univariate. Example: Expand((1+x)^2) would evaluate to 1+2*x+x^2. If the expression depends on more than one variable, you can specify which variable to expand to using Expand(expr,var); Also, you can expand to multiple variables, by specifying the order in which to expand, in a list, using Expand(expr,{varlist}).

Degree(expr)

Degree(expr) : return the degree of a polynomial. Example: Degree((1+x)^2); evaluates to 2.

Coef(expr,var,order)

Coef(expr,var,order) : return the coefficient of order for expression expr treated as a univariate with respect to the variable var.

PSolve(expr,var)

PSolve(expr,var) : solve expr=0, treating expr as a polynomial in the variable var. The result returned is the value var should take for expr=0 to be true. This has been implemented for polynomials upto degree 2.

Gcd(n,m)

Gcd(n,m) : Greatest common divisors are also defined for polynomials.

Div(n,m)

Div(n,m) : div is also defined for polynomials.

Mod(n,m)

Mod(n,m) : mod is also defined for polynomials.