Massive indent of all codes:
[scilab.git] / scilab / modules / elementary_functions / help / ru_RU / 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  * This file must be used under the terms of the CeCILL.
7  * This source file is licensed as described in the file COPYING, which
8  * you should have received as part of this distribution.  The terms
9  * are also available at
10  * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11  *
12  -->
13     <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="ru" xml:id="lcm">
14         <refnamediv>
15             <refname>lcm</refname>
16             <refpurpose>наименьшее общее кратное (НОК)</refpurpose>
17         </refnamediv>
18         <refsynopsisdiv>
19             <title>Последовательность вызова</title>
20             <synopsis>[pp, fact] = lcm(p)</synopsis>
21         </refsynopsisdiv>
22         <refsection>
23             <title>Аргументы</title>
24             <variablelist>
25                 <varlistentry>
26                     <term>p</term>
27                     <listitem>
28                         <para>
29                             вектор-строка полиномиальных значений <literal>p = [p1, ..., pn]</literal> либо
30                             вектор-строка целочисленных значений (тип 8).
31                         </para>
32                     </listitem>
33                 </varlistentry>
34                 <varlistentry>
35                     <term>fact</term>
36                     <listitem>
37                         <para>
38                             вектор полиномиальных или целочисленных значений (тип 8).
39                         </para>
40                     </listitem>
41                 </varlistentry>
42                 <varlistentry>
43                     <term>pp</term>
44                     <listitem>
45                         <para>полином или целое число.</para>
46                     </listitem>
47                 </varlistentry>
48             </variablelist>
49         </refsection>
50         <refsection>
51             <title>Описание</title>
52             <para>
53                 <code>pp=lcm(p)</code> вычисляет наименьшее общее кратное <varname>pp</varname> вектора полиномиальных значений <varname>p</varname>.
54             </para>
55             <para>
56                 <code>[pp, fact]=lcm(p)</code> вычисляет дополнительно вектор <varname>fact</varname> такой, что:
57             </para>
58             <para>
59                 <code>p.*fact=pp*ones(p)</code>.
60             </para>
61         </refsection>
62         <refsection>
63             <title>Примеры</title>
64             <programlisting role="example"><![CDATA[ 
65 //случай полиномов
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 //случай целых чисел
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 role="see also">
77             <title>Смотрите также</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>