1
<?xml version="1.0" encoding="UTF-8"?>
3
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
* Copyright (C) 2008 - INRIA
6
* This file must be used under the terms of the CeCILL.
7
* This source file is licensed as described in the file COPYING, which
8
* you should have received as part of this distribution. The terms
9
* are also available at
10
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13
<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="fr" xml:id="companion">
15
<refname>companion</refname>
16
<refpurpose> matrice compagnon </refpurpose>
19
<title>Séquence d'appel</title>
20
<synopsis>A=companion(p)</synopsis>
23
<title>Paramètres</title>
28
<para>polynôme ou vecteur de polynômes
42
<title>Description</title>
44
Renvoie une matrice <literal>A</literal> dont le polynôme caractéristique est
45
<literal>p</literal> si <literal>p</literal> est unitaire (le coefficient de plus haut degré est égal à un). Si <literal>p</literal> n'est pas unitaire
46
le polynôme caractéristique de <literal>A</literal> est égal à
47
<literal>p/c</literal> où <literal>c</literal> est le coefficient de plus haut degré de <literal>p</literal>.
50
Si <literal>p</literal> est un vecteur de polynômes unitaires, <literal>A</literal> est bloc-diagonale,
51
et le polynôme caractéristique du i-ème bloc est égal à <literal>p(i)</literal>.
55
<title>Exemples</title>
56
<programlisting role="example"><![CDATA[
58
p=poly([1,2,3,4,1],'s','c')
59
det(s*eye()-companion(p))
64
<refsection role="see also">
65
<title>Voir aussi</title>
66
<simplelist type="inline">
68
<link linkend="spec">spec</link>
71
<link linkend="poly">poly</link>
74
<link linkend="randpencil">randpencil</link>