Macro Library polys2

Polynomial functions with two variables, like 2x^2+3xy+4y^2. Version 1.0, Jan 21, 2010

formpoly2

formpoly2(coefficients,powers,powers2)
Creates a polynomial object with two variables
Use writepoly to create a display form of the polynomial
coefficients: list/array of coefficients
powers : list/array of powers for first variable
power2: list/array of power for the second variable

writepoly2

writepoly2(poly,[var,var2,showzeros])
Creates a display form for polynomial object
poly: polynomial object, created with formpoly
var: first variable, defaults to x
var2: second variable, defaults to y
showzeros: optional, defaults to false. If true, shows zero coefficients

addpolys2

addpolys2(poly1,poly2)
Adds polynomials, arranging terms from highest to lowest powers

subtpolys2

subtpolys2(poly1,poly2)
Subtracts polynomials: poly1-poly2, arranging terms from highest to lowest powers

multpolys2

multpolys2(poly1,poly2)
Multiplies polynomials

scalepoly2

scalepoly2(poly,c)
Multiplies each term of poly by constant c

polypower2

polypower2(poly,power)
Calculates poly^power

getcoef2

getcoef2(poly,degree,degree)
Gets the coefficient corresponding to the degree specified
if no such term is defined, 0 is returned (since that is the coefficient!)
poly: polynomial object, created with formpoly
degree: degree of term to get coefficient of