~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to demos/lmitool/testdscr_lyap

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright INRIA
2
 
n=3;
3
 
rand('seed',0)
4
 
rand('normal')
5
 
E=rand(n,1)*rand(1,n)
6
 
A=-rand(n,n)-eye()
7
 
C=rand(n,n);
8
 
getf(SCI+'/demos/lmitool/dscr_lyap.sci','c')
9
 
[X,Y]=dscr_lyap(E,A,C)
10
 
A'*X+Y'*A+C'*C
11
 
E'*X-Y'*E
12
 
spec(E'*X)
13
 
 
14
 
 
15
 
getf(SCI+'/demos/lmitool/dscr_lyap2.sci','c') 
16
 
X=dscr_lyap2(E,A)
17
 
E'*X-Y'*E
18
 
spec(E'*X)