Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語
Справка Scilab >> Linear Algebra > Matrix Pencil > companion

companion

companion matrix

Syntax

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

s=poly(0,'s');
p=poly([1,2,3,4,1],'s','c')
det(s*eye(4,4)-companion(p))
roots(p)
spec(companion(p))

See Also

  • spec — eigenvalues of matrices and pencils
  • poly — определение полинома
  • randpencil — random pencil
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:48:31 CEST 2016