Bug 3643 fixed, mtlb_eig is now obsolete
[scilab.git] / scilab_doc / Matlab_Scilab_dictionary / 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-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" version="5.0-subset Scilab" xml:id="eig">
14   <refnamediv>
15     <refname>eig</refname>
16     <refpurpose>(Matlab function) Find eigenvalues and eigenvectors</refpurpose>
17   </refnamediv>
18   <refsection>
19     <title>Matlab/Scilab equivalent</title>
20     <para>
21       <informaltable border="1" pgwide="1">
22         <tr>
23           <td align="center">
24             <emphasis role="bold">Matlab</emphasis>
25           </td>
26           <td align="center">
27             <emphasis role="bold">Scilab</emphasis>
28           </td>
29         </tr>
30         <tr>
31           <td>
32             <programlisting role="example"><![CDATA[
33 eig
34 ]]></programlisting>
35           </td>
36           <td>
37             <programlisting role="example"><![CDATA[
38 spec
39 bdiag
40 ]]></programlisting>
41           </td>
42         </tr>
43       </informaltable>
44     </para>
45   </refsection>
46   <refsection>
47     <title>Particular cases</title>
48     <variablelist>
49       <varlistentry>
50         <term>eig(A,'nobalance')</term>
51         <listitem>
52           <para>There is no Scilab equivalent for <emphasis role="bold">'nobalance'</emphasis> option. See examples...</para>
53         </listitem>
54       </varlistentry>
55       <varlistentry>
56         <term>eig(A,B,flag)</term>
57         <listitem>
58           <para>There is no Scilab equivalent for <emphasis role="bold">flag</emphasis>.</para>
59         </listitem>
60       </varlistentry>
61     </variablelist>
62   </refsection>
63   <refsection>
64     <title>Examples</title>
65     <informaltable border="1" pgwide="1">
66       <tr>
67         <td align="center">
68           <emphasis role="bold">Matlab</emphasis>
69         </td>
70         <td align="center">
71           <emphasis role="bold">Scilab</emphasis>
72         </td>
73       </tr>
74       <tr>
75         <td>
76           <programlisting role="example"><![CDATA[
77 d = eig(A,'balance')
78 [V,D] = eig(A,'balance')
79 d = eig(A,B)
80 [V,D] = eig(A,B)
81 ]]></programlisting>
82         </td>
83         <td>
84           <programlisting role="example"><![CDATA[
85 d = spec(A)
86 [V,D] = bdiag(A+%i,1/%eps)
87 [al,be] = spec(A); d = al./be;
88 [al,be,V] = spec(A); D = spec(al./be);
89 ]]></programlisting>
90         </td>
91       </tr>
92     </informaltable>
93   </refsection>
94 </refentry>