Massive indent of all codes:
[scilab.git] / scilab / modules / elementary_functions / help / ja_JP / discrete / gcd.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="ja" xml:id="gcd">
14         <refnamediv>
15             <refname>gcd</refname>
16             <refpurpose>最大公約数を計算</refpurpose>
17         </refnamediv>
18         <refsynopsisdiv>
19             <title>呼び出し手順</title>
20             <synopsis>[pgcd,U]=gcd(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             </variablelist>
35         </refsection>
36         <refsection>
37             <title>説明</title>
38             <para>
39                 <literal>p</literal>の要素の最大公約数および以下のような最小次数の
40                 (多項式の逆を有する)ユニモジュラ行列 <literal>U</literal>
41                 を計算します
42             </para>
43             <para>
44                 <literal>p*U=[0 ... 0 pgcd]</literal>
45             </para>
46         </refsection>
47         <refsection>
48             <title>例</title>
49             <programlisting role="example"><![CDATA[ 
50 //多項式の場合
51 s=poly(0,'s');
52 p=[s,s*(s+1)^2,2*s^2+s^3];
53 [pgcd,u]=gcd(p);
54 p*u
55
56 //整数の場合
57 V=int32([2^2*3^5, 2^3*3^2,2^2*3^4*5]);
58 [thegcd,U]=gcd(V)
59 V*U
60
61 gcd([15 20])
62
63 gcd(uint8([15 20]))
64
65 gcd([iconvert(15,4) iconvert(20,4)])
66
67 gcd(iconvert([15 20],4))
68  ]]></programlisting>
69         </refsection>
70         <refsection role="see also">
71             <title>参照</title>
72             <simplelist type="inline">
73                 <member>
74                     <link linkend="bezout">bezout</link>
75                 </member>
76                 <member>
77                     <link linkend="lcm">lcm</link>
78                 </member>
79                 <member>
80                     <link linkend="hermit">hermit</link>
81                 </member>
82             </simplelist>
83         </refsection>
84     </refentry>