Scilab 5.3.3
- Scilab help
- Linear Algebra
- aff2ab
- balanc
- bdiag
- chfact
- chol
- chsolve
- classmarkov
- cmb_lin
- coff
- colcomp
- companion
- cond
- det
- eigenmarkov
- ereduc
- expm
- fstair
- fullrf
- fullrfk
- genmarkov
- givens
- glever
- gschur
- gspec
- hess
- householder
- im_inv
- inv
- kernel
- kroneck
- linsolve
- lsq
- lu
- lyap
- nlev
- orth
- pbig
- pencan
- penlaur
- pinv
- polar
- proj
- projspec
- psmall
- qr
- quaskro
- randpencil
- range
- rank
- rankqr
- rcond
- rowcomp
- rowshuff
- rref
- schur
- spaninter
- spanplus
- spantwo
- spec
- sqroot
- squeeze
- sva
- svd
- sylv
- trace
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
companion
companion matrix
Calling Sequence
A=companion(p)
Arguments
- p
polynomial or vector of polynomials
- A
square matrix
Description
Returns a matrix A
with characteristic polynomial equal
to p
if p
is monic. If p
is not monic
the characteristic polynomial of A
is equal to
p/c
where c
is the coefficient of largest degree
in p
.
If p
is a vector of monic polynomials, A
is block diagonal,
and the characteristic polynomial of the ith block is p(i)
.
Examples
See Also
- spec — eigenvalues of matrices and pencils
- poly — polynomial definition
- randpencil — random pencil
Authors
F.D.
<< colcomp | Linear Algebra | cond >> |