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="en" xml:id="inv">
15
<refname>inv</refname>
16
<refpurpose> matrix inverse</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>inv(X)</synopsis>
23
<title>Arguments</title>
28
<para>real or complex square matrix, polynomial matrix, rational matrix in transfer or state-space representation.</para>
34
<title>Description</title>
36
<literal>inv(X)</literal> is the inverse of the square matrix <literal>X</literal>. A warning
37
message is printed if <literal>X</literal> is badly scaled or nearly singular.
40
For polynomial matrices or rational matrices in transfer representation,
41
<literal>inv(X)</literal> is equivalent to <literal>invr(X)</literal>.
44
For linear systems in state-space representation (<literal>syslin</literal> list),
45
<literal>invr(X)</literal> is equivalent to <literal>invsyslin(X)</literal>.
49
<title>References</title>
51
<literal>inv</literal> function for matrices of numbers is based on the Lapack routines
52
DGETRF, DGETRI for real matrices and ZGETRF, ZGETRI for the complex case.
53
For polynomial matrix and rational function matrix <literal>inv</literal> is based on the <literal>invr</literal>
58
<title>Examples</title>
59
<programlisting role="example"><![CDATA[
63
A=[x,1,x;x^2,2,1+x;1,2,3];inv(A)*A
73
<refsection role="see also">
74
<title>See Also</title>
75
<simplelist type="inline">
77
<link linkend="slash">slash</link>
80
<link linkend="backslash">backslash</link>
83
<link linkend="pinv">pinv</link>
86
<link linkend="qr">qr</link>
89
<link linkend="lufact">lufact</link>
92
<link linkend="lusolve">lusolve</link>
95
<link linkend="invr">invr</link>
98
<link linkend="coff">coff</link>
101
<link linkend="coffg">coffg</link>