add examples for numer, denom & degree 49/9749/4
Sylvestre Ledru [Tue, 20 Nov 2012 20:07:38 +0000 (21:07 +0100)]
Change-Id: I313ad20947d2858871f1f08ed70d3a113932ae89

scilab/modules/polynomials/help/en_US/degree.xml
scilab/modules/polynomials/help/en_US/denom.xml
scilab/modules/polynomials/help/en_US/numer.xml
scilab/modules/polynomials/help/fr_FR/degree.xml
scilab/modules/polynomials/help/fr_FR/denom.xml
scilab/modules/polynomials/help/fr_FR/numer.xml

index 515c2fe..b750c6d 100644 (file)
             returns the matrix of highest degrees of <literal>M</literal>.
         </para>
     </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+v=[-2-5*%s+%s^2;-6+11*%s-6*%s^2+%s^3];
+degree(v) // should return 2 and 3
+
+s=poly(0,"s");
+p=1+s+2*s^42;
+degree(v) // should return 42
+ ]]></programlisting>
+    </refsection>
+    
     <refsection role="see also">
         <title>See Also</title>
         <simplelist type="inline">
index 2efd6c0..deb6269 100644 (file)
             <literal>r('den')</literal> or <literal>r.den</literal>
         </para>
     </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+h=(1+2*%s)/poly(1:4,'s','c');
+denom(h)
+numer(h)
+
+s=poly(0,"s");
+p=1+s+2*s^2;
+denom(p) // Should return 1
+numer(p)
+ ]]></programlisting>
+    </refsection>
+    
     <refsection role="see also">
         <title>See Also</title>
         <simplelist type="inline">
index 2c9448f..b2b2075 100644 (file)
             <literal>numer(R)</literal> is equivalent to <literal>R(2)</literal>, <literal>R('num')</literal> or <literal>R.num</literal>
         </para>
     </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+h=(1+2*%s)/poly(1:4,'s','c');
+denom(h)
+numer(h)
+
+s=poly(0,"s");
+p=1+s+2*s^2;
+denom(p) // Should return 1
+numer(p)
+ ]]></programlisting>
+    </refsection>
     <refsection role="see also">
         <title>See Also</title>
         <simplelist type="inline">
index 465d410..4777c2a 100644 (file)
             renvoie la matrice des plus hauts degrés de <literal>M</literal>.
         </para>
     </refsection>
+    <refsection>
+        <title>Exemples</title>
+        <programlisting role="example"><![CDATA[
+v=[-2-5*%s+%s^2;-6+11*%s-6*%s^2+%s^3];
+degree(v) // Devrait retourner 2 et 3
+
+s=poly(0,"s");
+p=1+s+2*s^42;
+degree(v) // Devrait retourner 42
+ ]]></programlisting>
+    </refsection>
+    
     <refsection role="see also">
         <title>Voir aussi</title>
         <simplelist type="inline">
index 9126cc1..2ae3d1f 100644 (file)
             <literal>r('den')</literal> ou <literal>r.den)</literal>.
         </para>
     </refsection>
+    <refsection>
+        <title>Exemples</title>
+        <programlisting role="example"><![CDATA[
+h=(1+2*%s)/poly(1:4,'s','c');
+denom(h)
+numer(h)
+
+s=poly(0,"s");
+p=1+s+2*s^2;
+denom(p) // Devrait retourner 1
+numer(p)
+ ]]></programlisting>
+    </refsection>
+    
     <refsection role="see also">
         <title>Voir aussi</title>
         <simplelist type="inline">
index e71b0f6..8d52a8c 100644 (file)
             <literal>numer(R)</literal> est équivalent à <literal>R(2)</literal>, <literal>R('num')</literal> ou <literal>R.num</literal>
         </para>
     </refsection>
-    <refsection role="see also">
-        <title>Voir aussi</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="denom">denom</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
+    <refsection>
+        <title>Exemples</title>
+        <programlisting role="example"><![CDATA[
+h=(1+2*%s)/poly(1:4,'s','c');
+denom(h)
+numer(h)
+
+s=poly(0,"s");
+p=1+s+2*s^2;
+denom(p) // Devrait retourner 1
+numer(p)
+ ]]></programlisting>
+        <refsection role="see also">
+            <title>Voir aussi</title>
+            <simplelist type="inline">
+                <member>
+                    <link linkend="denom">denom</link>
+                </member>
+            </simplelist>
+        </refsection>
+    </refentry>