1 <?xml version="1.0" encoding="UTF-8"?>
3     <refnamediv>
4         <refname>rational</refname>
5         <refpurpose>Scilab objects, rational in Scilab</refpurpose>
6     </refnamediv>
7     <refsection>
8         <title>Description</title>
9         <para>
10             A rational <literal>r</literal> is a quotient of two polynomials <literal>r=num/den</literal>.
11             The internal representation of a rational is a list.
12             <literal>r=tlist(['r','num','den','dt'],num,den,[])</literal> is the same as <literal>r=num/den</literal>.
13             A rational matrix can be defined with the usual syntax
14             e.g. <literal>[r11,r12;r21,r22]</literal> is a 2x2 matrix where <literal>rij</literal> are
15             1x1 rationals.
16             A rational matrix can also be defined as above as a list
17             <literal>rlist(num,den,[])</literal> with <literal>num</literal> and <literal>den</literal> polynomial matrices.
18         </para>
19     </refsection>
20     <refsection>
21         <title>Examples</title>
22         <programlisting role="example"><![CDATA[
23 s=poly(0,'s');
24 W=[1/s,1/(s+1)]
25 W'*W
26 Num=[s,s+2;1,s];Den=[s*s,s;s,s*s];
27 rlist(Num,Den,[])
28 H=Num./Den
29 syslin('c',Num,Den)
30 syslin('c',H)
31 [Num1,Den1]=simp(Num,Den)
32  ]]></programlisting>
33     </refsection>
34     <refsection role="see also">
35         <title>See Also</title>
36         <simplelist type="inline">
37             <member>