Currently Genius can handle polynomials of one variable written out
as vectors, and do some basic operations with these. It is planned to
expand this support further.
Currently
polynomials in one variable are just horizontal vectors with value only nodes.
The power of the term is the position in the vector, with the first position
being 0. So,
translates to a polynomial of
You can add, subtract and multiply polynomials using the
AddPoly,
SubtractPoly, and
MultiplyPoly functions respectively.
You can print a polynomial using the
PolyToString
function.
For example,
PolyToString([1,2,3],"y")
|
gives
You can also get a function representation of the polynomial so that you can
evaluate it. This is done by using
PolyToFunction,
which
returns an anonymous function.
f = PolyToFunction([0,1,1])
f(2)
|
It is also possible to find roots of polynomials of degrees 1 through 4 by using the
function
PolynomialRoots,
which calls the appropriate formula function. Higher degree polynomials must be converted to
functions and solved
numerically using a function such as
FindRootBisection,
FindRootFalsePosition,
FindRootMullersMethod, or
FindRootSecant.
See the Section called Polynomials in the Chapter called List of GEL functions in the function list
for the rest of functions acting on polynomials.