034188e1e4818d0c3d7acf60d100a845aeea2d55
[scilab.git] / scilab / modules / elementary_functions / help / pt_BR / discrete / lcm.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) 2006-2008 - INRIA
5  *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  -->
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="lcm" xml:lang="pt">
17     <refnamediv>
18         <refname>lcm</refname>
19         <refpurpose>mínimo múltiplo comum</refpurpose>
20     </refnamediv>
21     <refsynopsisdiv>
22         <title> Seqüência de Chamamento </title>
23         <synopsis>[pp,fact]=lcm(p)</synopsis>
24     </refsynopsisdiv>
25     <refsection>
26         <title>Parâmetros</title>
27         <variablelist>
28             <varlistentry>
29                 <term>p</term>
30                 <listitem>
31                     <para>vetor de polinômios </para>
32                 </listitem>
33             </varlistentry>
34             <varlistentry>
35                 <term>fact</term>
36                 <listitem>
37                     <para>vetor de polinômios ou inteiros (tipo igual a 8)</para>
38                 </listitem>
39             </varlistentry>
40             <varlistentry>
41                 <term>pp</term>
42                 <listitem>
43                     <para>polinômio ou inteiro</para>
44                 </listitem>
45             </varlistentry>
46         </variablelist>
47     </refsection>
48     <refsection>
49         <title>Descrição</title>
50         <para>
51             <literal>pp=lcm(p)</literal> computa o MMC <literal>pp</literal> do
52             vetor de polinômios <literal>p</literal>.
53         </para>
54         <para>
55             <literal>[pp,fact]=lcm(p)</literal> computa, ainda, o vetor
56             <literal>fact</literal> tal que:
57         </para>
58         <para>
59             <literal>p.*fact=pp*ones(p)</literal>
60         </para>
61     </refsection>
62     <refsection>
63         <title>Exemplos</title>
64         <programlisting role="example"><![CDATA[
65 //caso polinomial
66 s=poly(0,'s');
67 p=[s,s*(s+1)^2,s^2*(s+2)];
68 [pp,fact]=lcm(p);
69 p.*fact, pp
70
71 //caso inteiro
72 V=int32([2^2*3^5, 2^3*3^2,2^2*3^4*5]);
73 lcm(V)
74  ]]></programlisting>
75     </refsection>
76     <refsection>
77         <title> Ver Também </title>
78         <simplelist type="inline">
79             <member>
80                 <link linkend="gcd">gcd</link>
81             </member>
82             <member>
83                 <link linkend="bezout">bezout</link>
84             </member>
85         </simplelist>
86     </refsection>
87 </refentry>