summaryrefslogtreecommitdiff
path: root/modules/overloading/macros/%lss_v_s.sci
blob: 0e31a68163d768fdbfdecfe9db45d78d1253ba9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) INRIA - Serge Steer
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution.  The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt

function [s]=%lss_v_s(s1,d2)
    //s=%lss_v_s(s1,d2)  <=> s=s1/.d2
    //!
    [a1,b1,c1,d1,x1,dom1]=s1(2:7)
    e12=1/(eye()+d2*d1)
    e21=eye()-d1*e12*d2;e12=b1*e12
    a=a1-e12*d2*c1
    s=tlist(["lss","A","B","C","D","X0","dt"],a1-e12*d2*c1,e12,e21*c1,e21*d1,x1,dom1)
endfunction