7ae50d9fe43833569211b0bb25b9251eafc916e0
[scilab.git] / scilab / modules / m2sci / help / en_US / m2sci_equivalents / e / eig.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
5  *
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.1-en.txt
11  *
12  -->
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" xmlns:scilab="http://www.scilab.org" xml:id="m2sci_eig">
14     <refnamediv>
15         <refname>eig (Matlab function)</refname>
16         <refpurpose>Find eigenvalues and eigenvectors</refpurpose>
17     </refnamediv>
18     <refsection>
19         <title>Matlab/Scilab equivalent</title>
20         <informaltable border="1" width="100%">
21             <tr>
22                 <td align="center">
23                     <emphasis role="bold">Matlab</emphasis>
24                 </td>
25                 <td align="center">
26                     <emphasis role="bold">Scilab</emphasis>
27                 </td>
28             </tr>
29             <tr>
30                 <td>
31                     <programlisting role="example"><![CDATA[
32 eig
33 ]]></programlisting>
34                 </td>
35                 <td>
36                     <programlisting role="example"><![CDATA[
37 spec - bdiag
38 ]]></programlisting>
39                 </td>
40             </tr>
41         </informaltable>
42     </refsection>
43     <refsection>
44         <title>Particular cases</title>
45         <variablelist>
46             <varlistentry>
47                 <term>eig(A)</term>
48                 <listitem>
49                     <para>Scilab equivalent for eig(A) is spec(A). Scilab eigen vector matrix can differ from Matlab one.</para>
50                 </listitem>
51             </varlistentry>
52             <varlistentry>
53                 <term>eig(A,'nobalance')</term>
54                 <listitem>
55                     <para>
56                         There is no Scilab equivalent for <emphasis role="bold">"nobalance"</emphasis> option. See examples.
57                     </para>
58                 </listitem>
59             </varlistentry>
60             <varlistentry>
61                 <term>eig(A,B,flag)</term>
62                 <listitem>
63                     <para>
64                         There is no Scilab equivalent for <emphasis role="bold">flag</emphasis>.
65                     </para>
66                 </listitem>
67             </varlistentry>
68         </variablelist>
69     </refsection>
70     <refsection>
71         <title>Examples</title>
72         <informaltable border="1" width="100%">
73             <tr>
74                 <td align="center">
75                     <emphasis role="bold">Matlab</emphasis>
76                 </td>
77                 <td align="center">
78                     <emphasis role="bold">Scilab</emphasis>
79                 </td>
80             </tr>
81             <tr>
82                 <td>
83                     <programlisting role="example"><![CDATA[
84 d = eig(A,'balance')
85 [V,D] = eig(A,'balance')
86 d = eig(A,B)
87 [V,D] = eig(A,B)
88 ]]></programlisting>
89                 </td>
90                 <td>
91                     <programlisting role="example"><![CDATA[
92 d = spec(A)
93 [V,D] = bdiag(A+%i,1/%eps)
94 [al,be] = spec(A); d = al./be;
95 [al,be,V] = spec(A); D = spec(al./be);
96 ]]></programlisting>
97                 </td>
98             </tr>
99         </informaltable>
100     </refsection>
101 </refentry>