1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
6
<TYPE>Scilab Function</TYPE>
7
<DATE>April 1993</DATE>
8
<SHORT_DESCRIPTION name="poly"> polynomial definition</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>[p]=poly(a,"x", ["flag"]) </CALLING_SEQUENCE_ITEM>
15
<PARAM_NAME>a</PARAM_NAME>
17
<SP>: matrix or real number</SP>
21
<PARAM_NAME>x</PARAM_NAME>
23
<SP>: symbolic variable</SP>
27
<PARAM_NAME>"flag" </PARAM_NAME>
29
<SP>: string ("roots", "coeff"), default value is "roots".</SP>
36
If <VERB>a</VERB> is a matrix, <VERB>p</VERB> is the characteristic polynomial i.e.
37
<VERB>determinant(x*eye()-a)</VERB>, <VERB>x</VERB> being the symbolic variable.</P>
39
If <VERB>v</VERB> is a vector, <VERB>poly(v,"x",["roots"])</VERB> is the polynomial
40
with <VERB>roots</VERB> the entries of <VERB>v</VERB> and <VERB>"x"</VERB> as formal variable.
41
(In this case, <VERB>roots</VERB> and <VERB>poly</VERB> are inverse functions).</P>
42
<P><VERB>poly(v,"x","coeff")</VERB> creates the polynomial with symbol <VERB>"x"</VERB>
43
and with coefficients the entries of <VERB>v</VERB> (v(1) is the constant term of the polynomial). (Here <VERB>poly</VERB> and <VERB>coeff</VERB>
44
are inverse functions).</P>
45
<P><VERB>s=poly(0,"s")</VERB> is the seed for defining polynomials with symbol
46
<VERB>"s"</VERB>.</P>
50
s=poly(0,"s");p=1+s+2*s^2;
51
A=rand(2,2);poly(A,"x")