1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="rational">
4 <refname>rational</refname>
5 <refpurpose>Scilab objects, rational in Scilab</refpurpose>
8 <title>Description</title>
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
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.
21 <title>Examples</title>
22 <programlisting role="example"><![CDATA[
26 Num=[s,s+2;1,s];Den=[s*s,s;s,s*s];
31 [Num1,Den1]=simp(Num,Den)
34 <refsection role="see also">
35 <title>See Also</title>
36 <simplelist type="inline">
38 <link linkend="poly">poly</link>
41 <link linkend="syslin">syslin</link>
44 <link linkend="simp">simp</link>