1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="poly">
4 <refname>poly</refname>
5 <refpurpose>polynomial definition</refpurpose>
8 <title>Calling Sequence</title>
9 <synopsis>p=poly(a,vname, ["flag"])</synopsis>
12 <title>Arguments</title>
17 <para>matrix or real number</para>
23 <para>String, the symbolic variable name. If the string have more
24 than 4 characters only the first 4 are taken into account.
32 string ("roots", "coeff"), default value is <literal>"roots"</literal>.
39 <title>Description</title>
43 If <literal>a</literal> is a matrix,
47 <literal>p</literal> is the characteristic
48 polynomial i.e. <literal>determinant(x*eye()-a)</literal>, <literal>x</literal> being
49 the symbolic variable.
54 <term>If v is a vector,</term>
59 <literal>poly(v,"x",["roots"])</literal> is the polynomial
60 with <literal>roots</literal> the entries of <literal>v</literal> and
61 <literal>"x"</literal> as formal variable. (In this case,
62 <literal>roots</literal> and <literal>poly</literal> are inverse functions).
63 Note that Infinite roots gives zero highest degree coefficients.
68 <literal>poly(v,"x","coeff")</literal> creates the
69 polynomial with symbol <literal>"x"</literal> and with coefficients
70 the entries of <literal>v</literal> (<literal>v(1)</literal> is the constant term
71 of the polynomial). (Here <literal>poly</literal> and <literal>coeff</literal> are
80 <literal>s=poly(0,"s")</literal> is the seed for defining
81 polynomials with symbol <literal>"s"</literal>.
85 <title>Examples</title>
86 <programlisting role="example"><![CDATA[
92 h=(1+2*%s)/poly(1:4,'s','c')
95 <refsection role="see also">
96 <title>See Also</title>
97 <simplelist type="inline">
99 <link linkend="coeff">coeff</link>
102 <link linkend="roots">roots</link>
105 <link linkend="varn">varn</link>
108 <link linkend="horner">horner</link>
111 <link linkend="derivat">derivat</link>
114 <link linkend="matrices">matrices</link>
117 <link linkend="rational">rational</link>