Table of Contents
Actualmente, Genius puede manipular polinomios de una variable escritos como vectores y realizar algunas operaciones básicas con ellos. Se prevé ampliar este soporte adicional.
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)
También es posible encontrar raíces de los polinomios de grado 1 a 4 mediante el uso de la función PolynomialRoots
, que llama a la función de la fórmula adecuada. Los polinomios de grado más alto se convertirán en funciones y se resolverán numéricamente al utilizar una función como FindRootBisection
, FindRootFalsePosition
, FindRootMullersMethod
, o FindRootSecant
.
Consulte la the section called “Polinomios” en la lista de funciones el resto de funciones que actúan sobre polinomios.