~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/linear/sylv.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
sylv             Scilab Group             Scilab Function              sylv
 
2
NAME
 
3
   sylv - Sylvester equation.
 
4
  
 
5
CALLING SEQUENCE
 
6
 sylv(A,B,C,flag)
 
7
PARAMETERS
 
8
 A,B,C        : three real matrices of appropriate dimensions.
 
9
              
 
10
 flag         character string ('c' or 'd')
 
11
              
 
12
DESCRIPTION
 
13
   computes X, solution of the "continuous time" Sylvester equation
 
14
  
 
15
 A*X+X*B=C 
 
16
   computes X, solution of the "discrete time" Sylvester equation
 
17
  
 
18
 A*X*B-X=C
 
19
EXAMPLE
 
20
 A=rand(4,4);C=rand(4,3);B=rand(3,3);
 
21
 X = sylv(A,B,C,'c');
 
22
 norm(A*X+X*B-C)
 
23
 X=sylv(A,B,C,'d') 
 
24
 norm(A*X*B-X-C)
 
25
SEE ALSO
 
26
   lyap 
 
27