File: poly.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (40 lines) | stat: -rw-r--r-- 1,058 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.TH poly 1 "April 1993" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
poly - polynomial definition
.SH CALLING SEQUENCE
.nf
[p]=poly(a,"x", ["flag"])
.fi
.SH PARAMETERS
.TP 10
a 
: matrix or real number
.TP 10
x 
: symbolic variable
.TP 10
"flag"
: string ("roots", "coeff"), default value is "roots".
.SH DESCRIPTION
If \fVa\fR is a matrix, \fVp\fR is the characteristic polynomial i.e.
 \fVdeterminant(x*eye()-a)\fR, \fVx\fR being the symbolic variable.
.LP
If \fVv\fR  is a vector, \fVpoly(v,"x",["roots"])\fR  is the polynomial
with \fVroots\fR the entries of \fVv\fR and \fV"x"\fR as formal variable.
(In this case,  \fVroots\fR and   \fVpoly\fR are inverse functions).
.LP
\fVpoly(v,"x","coeff")\fR creates the polynomial with symbol \fV"x"\fR
and with coefficients the entries of \fVv\fR. (Here \fVpoly\fR and \fVcoeff\fR
are inverse functions).
.LP
\fVs=poly(0,"s")\fR is the seed for defining polynomials with symbol
\fV"s"\fR.
.SH EXAMPLE
.nf
s=poly(0,"s");p=1+s+2*s^2;
A=rand(2,2);poly(A,"x")
.fi
.SH SEE ALSO
coeff, matrices, rational