add some examples in the help page of the polymonial module 08/9808/2
Sylvestre Ledru [Tue, 27 Nov 2012 10:47:43 +0000 (11:47 +0100)]
Change-Id: I597ac76bebdf239441b3cc2cc72b618d8cb2e194

scilab/modules/polynomials/help/en_US/coeff.xml
scilab/modules/polynomials/help/en_US/pol2str.xml
scilab/modules/polynomials/help/en_US/polfact.xml
scilab/modules/polynomials/help/en_US/sylm.xml
scilab/modules/polynomials/help/fr_FR/coeff.xml
scilab/modules/polynomials/help/fr_FR/pol2str.xml
scilab/modules/polynomials/help/fr_FR/polfact.xml
scilab/modules/polynomials/help/fr_FR/sylm.xml

index 2b571f1..848fe25 100644 (file)
             degree in <literal>v</literal> . (<literal>v</literal> is a row or column vector).
         </para>
     </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+s=poly(0,'s');
+w=s*rand(10,10);
+determ(w)
+coeff(w,1)
+
+r = poly([0 -1+%i -1-%i],'s',"roots");
+coeff(r)
+
+r = poly([-1-%i -1+2*%i 0],'s',"roots");
+coeff(r)
+
+ ]]></programlisting>
+    </refsection>
     <refsection role="see also">
         <title>See Also</title>
         <simplelist type="inline">
index 5ac10d9..fbeaaa0 100644 (file)
             converts polynomial to character string (utility function).
         </para>
     </refsection>
+    
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+pol2str(%z)
+
+p = poly ([1, 2, 3], "x","coeff");
+pol2str(p)
+
+ ]]></programlisting>
+    </refsection>
+    
     <refsection role="see also">
         <title>See Also</title>
         <simplelist type="inline">
index 68e402d..3812eb7 100644 (file)
             that <literal>p=prod(f)</literal>
         </para>
     </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+x = poly(0,"x")
+polfact(x^2-1)
+
+polfact(x^7-1)
+
+
+ ]]></programlisting>
+    </refsection>
+    
     <refsection role="see also">
         <title>See Also</title>
         <simplelist type="inline">
index 7332d58..386c1d8 100644 (file)
@@ -54,7 +54,7 @@
         <para>
             <literal>rank(sylm(a,b))=degree(a)+degree(b))</literal> and the instructions
         </para>
-        <programlisting role=""><![CDATA[ 
+        <programlisting role="no-scilab-exec"><![CDATA[ 
 u = sylm(a,b) \ eye(na+nb,1)
 x = poly(u(1:nb),'z','coeff')
 y = poly(u(nb+1:na+nb),'z','coeff')
@@ -64,4 +64,15 @@ y = poly(u(nb+1:na+nb),'z','coeff')
             such that <literal>a*x+b*y = 1</literal>
         </para>
     </refsection>
+    
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+x = poly(0,"x")
+y = poly ([1, 2, 3], "x","coeff");
+sylm(x,y)
+
+ ]]></programlisting>
+    </refsection>
+    
 </refentry>
index 6ad5b32..c7f4a95 100644 (file)
             degrés dans <literal>v</literal>.
         </para>
     </refsection>
+    <refsection>
+        <title>Exemples</title>
+        <programlisting role="example"><![CDATA[
+s=poly(0,'s');
+w=s*rand(10,10);
+determ(w)
+coeff(w,1)
+
+r = poly([0 -1+%i -1-%i],'s',"roots");
+coeff(r)
+
+r = poly([-1-%i -1+2*%i 0],'s',"roots");
+coeff(r)
+
+ ]]></programlisting>
+    </refsection>
+    
     <refsection role="see also">
         <title>Voir aussi</title>
         <simplelist type="inline">
index 793cf50..2bed34e 100644 (file)
             convertit le polynôme p en une chaîne de caractères (fonction utilitaire).
         </para>
     </refsection>
+    
+    <refsection>
+        <title>Exemples</title>
+        <programlisting role="example"><![CDATA[
+pol2str(%z)
+
+p = poly ([1, 2, 3], "x","coeff");
+pol2str(p)
+
+ ]]></programlisting>
+    </refsection>
+    
     <refsection role="see also">
         <title>Voir aussi</title>
         <simplelist type="inline">
index a39c28c..78b192b 100644 (file)
             i.e. <literal>f=[f0 f1 ... fn]</literal> tel que <literal>p=prod(f)</literal>
         </para>
     </refsection>
+    
+    <refsection>
+        <title>Exemples</title>
+        <programlisting role="example"><![CDATA[
+pol2str(%z)
+
+p = poly ([1, 2, 3], "x","coeff");
+pol2str(p)
+
+ ]]></programlisting>
+    </refsection>
+    
     <refsection role="see also">
         <title>Voir aussi</title>
         <simplelist type="inline">
index f499d59..b37fe06 100644 (file)
@@ -45,7 +45,7 @@
         <para>
             <literal>rank(sylm(a,b))=degree(a)+degree(b))</literal> et les instructions
         </para>
-        <programlisting role=""><![CDATA[ 
+        <programlisting role="no-scilab-exec"><![CDATA[ 
 u = sylm(a,b) \ eye(na+nb,1)
 x = poly(u(1:nb),'z','coeff')
 y = poly(u(nb+1:na+nb),'z','coeff')
@@ -54,11 +54,15 @@ y = poly(u(nb+1:na+nb),'z','coeff')
             calculent les facteurs de Bezout <literal>x</literal> ainsi que <literal>y</literal> de degré minimum tels que 
             <literal>a*x+b*y = 1</literal>
         </para>
-        <para>
-        </para>
-        <para>
-        </para>
-        <para>
-        </para>
+        
+        <refsection>
+            <title>Exemples</title>
+            <programlisting role="example"><![CDATA[
+x = poly(0,"x")
+y = poly ([1, 2, 3], "x","coeff");
+sylm(x,y)
+
+ ]]></programlisting>
+        </refsection>
     </refsection>
 </refentry>