File: lyap.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (28 lines) | stat: -rw-r--r-- 716 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
lyap             Scilab Group             Scilab Function              lyap
NAME
   lyap  - Lyapunov equation
  
CALLING SEQUENCE
 [X]=lyap(A,C,'c')
 [X]=lyap(A,C,'d')
PARAMETERS
 A, C       : real square matrices, C must be symmetric
            
DESCRIPTION
   solves the continuous time or discrete time  matrix Lyapunov  matrix
  equation:
  
 A'*X + X*A = C       ( flag='c' )
 A'*X*A - X = C       ( flag='d' )
 Note that a unique solution exist if and only if an eigenvalue of A is
 not an eigenvalue of -A (flag='c')  or 1 over an eigenvalue of A 
 (flag='d').
EXAMPLE
 A=rand(4,4);C=rand(A);C=C+C';
 X=lyap(A,C,'c');
 A'*X + X*A -C
 X=lyap(A,C,'d');
 A'*X*A - X -C
SEE ALSO
   sylv, ctr_gram, obs_gram