Table of Contents
Προς το παρόν η Genius μπορεί να χειριστεί πολυώνυμα μιας μεταβλητής γραμμένα ως διανύσματα και να κάνει μερικές βασικές πράξεις με αυτές. Είναι προγραμματισμένο να επεκτείνει αυτήν την υποστήριξη παραπέρα.
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)
Είναι επίσης δυνατό να βρείτε ρίζες πολυωνύμων βαθμών 1 μέχρι 4 χρησιμοποιώντας τη συνάρτηση PolynomialRoots
, που καλεί τη συνάρτηση κατάλληλου τύπου. Πολυώνυμα μεγαλύτερου βαθμού πρέπει να μετατραπούν σε συναρτήσεις και να επιλυθούν αριθμητικά χρησιμοποιώντας μια συνάρτηση όπως οι FindRootBisection
, FindRootFalsePosition
, FindRootMullersMethod
, ή FindRootSecant
.
Δείτε the section called “Πολυώνυμα” στον κατάλογο συναρτήσεων για τις υπόλοιπες συναρτήσεις που δρουν σε πολυώνυμα.