File: invsyslin.sci

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 (18 lines) | stat: -rw-r--r-- 295 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function it=invsyslin(t)

// Copyright INRIA

if type(t)<>16 then error(91,1),end
flag=t(1);
if flag(1) <> 'lss' then error(91,1),end;
[p,m]=size(t(5));
if p <> m then  warning('non square D matrix'),end
//
d=pinv(t(5));
a=t(2)-t(3)*d*t(4);
b=t(3)*d;
c=-d*t(4);
it=syslin(t(7),a,b,c,d,t(6));