Table of Contents
V současnosti Genius umí pracovat s polynomy jedné proměnné zapsanými jako vektory a umí s nimi některé základní operace. Do budoucna se počítá s rozšířením této funkcionality.
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,
[1,2,3]
translates to a polynomial of
1 + 2*x + 3*x^2
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
3*y^2 + 2*y + 1
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)
Rovněž je možné hledat kořeny polynomů 1. až 4. stupně pomocí funkce PolynomialRoots
, která volá funkce s příslušnými vzorci. Vyšší stupně polynomů musí být převedeny na funkce a řešeny numericky pomocí funkcí, jako je FindRootBisection
, FindRootFalsePosition
, FindRootMullersMethod
nebo FindRootSecant
.
Ohledně ostatních funkcí týkajících se polynomů se podívejte se na the section called “Polynomy” v seznamu funkcí.