* Bug 15058 fixed: gcd and lcm result could be puzzingly <0
[scilab.git] / scilab / modules / elementary_functions / help / pt_BR / discrete / lcm.xml
1 <?xml version="1.0" encoding="UTF-8"?>
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"
17         xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml"
18         xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
19         xmlns:scilab="http://www.scilab.org" xml:id="lcm" xml:lang="pt">
20     <refnamediv>
21         <refname>lcm</refname>
22         <refpurpose>mínimo múltiplo comum</refpurpose>
23     </refnamediv>
24     <refsynopsisdiv>
25         <title> Seqüência de Chamamento </title>
26         <synopsis>
27              pp = lcm(p)
28             [pp, fact] = lcm(p)
29         </synopsis>
30     </refsynopsisdiv>
31     <refsection>
32         <title>Parâmetros</title>
33         <variablelist>
34             <varlistentry>
35                 <term>p</term>
36                 <listitem>
37                     <para>vetor de polinômios </para>
38                 </listitem>
39             </varlistentry>
40             <varlistentry>
41                 <term>fact</term>
42                 <listitem>
43                     <para>vetor de polinômios ou inteiros (tipo igual a 8)</para>
44                 </listitem>
45             </varlistentry>
46             <varlistentry>
47                 <term>pp</term>
48                 <listitem>
49                     <para>polinômio ou inteiro</para>
50                 </listitem>
51             </varlistentry>
52         </variablelist>
53     </refsection>
54     <refsection>
55         <title>Descrição</title>
56         <para>
57             <literal>pp=lcm(p)</literal> computa o MMC <literal>pp</literal> do
58             vetor de polinômios <literal>p</literal>.
59         </para>
60         <para>
61             <literal>[pp,fact]=lcm(p)</literal> computa, ainda, o vetor
62             <literal>fact</literal> tal que <literal>p.*fact=pp*ones(p)</literal>
63         </para>
64         <para>
65           If <literal>p</literal> is a set of integers with some negative ones, the returned value
66           <literal>pp</literal> of their LCM is always positive.
67         </para>
68         <para>
69             If <literal>p</literal> is an array of decimal integers, they are priorly converted
70             into <literal>int32</literal> before processing.
71         </para>
72     </refsection>
73     <refsection>
74         <title>Exemplos</title>
75         <programlisting role="example"><![CDATA[
76 //caso polinomial
77 s=poly(0,'s');
78 p=[s,s*(s+1)^2,s^2*(s+2)];
79 [pp,fact]=lcm(p);
80 p.*fact, pp
81
82 //caso inteiro
83 V=int32([2^2*3^5, 2^3*3^2,2^2*3^4*5]);
84 lcm(V)
85  ]]></programlisting>
86     </refsection>
87     <refsection>
88         <title> Ver Também </title>
89         <simplelist type="inline">
90             <member>
91                 <link linkend="gcd">gcd</link>
92             </member>
93             <member>
94                 <link linkend="bezout">bezout</link>
95             </member>
96         </simplelist>
97     </refsection>
98     <refsection role="history">
99         <title>Histórico</title>
100         <revhistory>
101             <revision>
102                 <revnumber>6.0.1</revnumber>
103                 <revdescription>
104                     For input integers possibly negative, the returned LCM is now always positive.
105                 </revdescription>
106             </revision>
107         </revhistory>
108     </refsection>
109 </refentry>