0b4e3d3e1cd684732953c4101c4a807717928a53
[scilab.git] / scilab / modules / elementary_functions / help / ja_JP / discrete / lcm.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
5  * Copyright (C) 2006-2008 - INRIA
6  *
7  * Copyright (C) 2012 - 2016 - Scilab Enterprises
8  *
9  * This file is hereby licensed under the terms of the GNU GPL v2.0,
10  * pursuant to article 5.3.4 of the CeCILL v.2.1.
11  * This file was originally licensed under the terms of the CeCILL v2.1,
12  * and continues to be available under such terms.
13  * For more information, see the COPYING file which you should have received
14  * along with this program.
15  *
16  -->
17
18 <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="ja" xml:id="lcm">
19
20     <refnamediv>
21
22         <refname>lcm</refname>
23
24         <refpurpose>最小公倍数</refpurpose>
25
26     </refnamediv>
27
28     <refsynopsisdiv>
29
30         <title>呼び出し手順</title>
31
32         <synopsis>[pp, fact] = lcm(p)</synopsis>
33
34     </refsynopsisdiv>
35
36     <refsection>
37
38         <title>引数</title>
39
40         <variablelist>
41
42             <varlistentry>
43
44                 <term>p</term>
45
46                 <listitem>
47
48                     <para>
49
50                         多項式行ベクトル <literal>p = [p1, ..., pn]</literal> (2型) または
51
52                         整数行ベクトル (8型).
53
54                     </para>
55
56                 </listitem>
57
58             </varlistentry>
59
60             <varlistentry>
61
62                 <term>fact</term>
63
64                 <listitem>
65
66                     <para>多項式ベクトルまたは整数ベクトル</para>
67
68                 </listitem>
69
70             </varlistentry>
71
72             <varlistentry>
73
74                 <term>pp</term>
75
76                 <listitem>
77
78                     <para>多項式または整数</para>
79
80                 </listitem>
81
82             </varlistentry>
83
84         </variablelist>
85
86     </refsection>
87
88     <refsection>
89
90         <title>説明</title>
91
92         <para>
93
94             <code>pp = lcm(p)</code> は,多項式ベクトル<varname>p</varname>
95
96             の最小公倍数<varname>pp</varname>を計算します.
97
98         </para>
99
100         <para>
101
102             <code>[pp, fact] = lcm(p)</code> は,これに加えて以下のような
103
104             ベクトル<varname>fact</varname>を計算します:
105
106         </para>
107
108         <para>
109
110             <code>p.*fact = pp*ones(p)</code>
111
112         </para>
113
114         <para>
115
116             実数の配列<literal>p</literal>の最小公倍数は,
117
118             <literal>lcm</literal>をコールする前に<code>p = inv_coeff(p, 0)</code>により
119
120             多項式に変換することにより得られます.
121
122         </para>
123
124     </refsection>
125
126     <refsection>
127
128         <title>例</title>
129
130         <programlisting role="example"><![CDATA[
131 //多項式の場合
132 s=poly(0,'s');
133 p=[s,s*(s+1)^2,s^2*(s+2)];
134 [pp,fact]=lcm(p);
135 p.*fact, pp
136 //整数の場合
137 V=int32([2^2*3^5, 2^3*3^2,2^2*3^4*5]);
138 lcm(V)
139  ]]></programlisting>
140
141     </refsection>
142
143     <refsection role="see also">
144
145         <title>参照</title>
146
147         <simplelist type="inline">
148
149             <member>
150
151                 <link linkend="gcd">gcd</link>
152
153             </member>
154
155             <member>
156
157                 <link linkend="bezout">bezout</link>
158
159             </member>
160
161         </simplelist>
162
163     </refsection>
164
165 </refentry>
166