File: sylv.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 (27 lines) | stat: -rw-r--r-- 615 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
sylv             Scilab Group             Scilab Function              sylv
NAME
   sylv - Sylvester equation.
  
CALLING SEQUENCE
 sylv(A,B,C,flag)
PARAMETERS
 A,B,C        : three real matrices of appropriate dimensions.
              
 flag         character string ('c' or 'd')
              
DESCRIPTION
   computes X, solution of the "continuous time" Sylvester equation
  
 A*X+X*B=C 
   computes X, solution of the "discrete time" Sylvester equation
  
 A*X*B-X=C
EXAMPLE
 A=rand(4,4);C=rand(4,3);B=rand(3,3);
 X = sylv(A,B,C,'c');
 norm(A*X+X*B-C)
 X=sylv(A,B,C,'d') 
 norm(A*X*B-X-C)
SEE ALSO
   lyap