Merge remote-tracking branch 'refs/remotes/origin/master' into YaSp
[scilab.git] / scilab / modules / elementary_functions / help / ja_JP / discrete / rat.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) 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:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="rat" xml:lang="ja">
14   <info>
15     <pubdate>$LastChangedDate$</pubdate>
16   </info>
17   <refnamediv>
18     <refname>rat</refname>
19     <refpurpose>浮動小数点数の有理数近似</refpurpose>
20   </refnamediv>
21   <refsynopsisdiv>
22     <title>呼び出し手順</title>
23     <synopsis>[N,D]=rat(x [,tol])
24       y=rat(x [,tol])
25     </synopsis>
26   </refsynopsisdiv>
27   <refsection>
28     <title>パラメータ</title>
29     <variablelist>
30       <varlistentry>
31         <term>x</term>
32         <listitem>
33           <para>実数のベクトルまたは行列</para>
34         </listitem>
35       </varlistentry>
36       <varlistentry>
37         <term>n</term>
38         <listitem>
39           <para>整数のベクトルまたは行列</para>
40         </listitem>
41       </varlistentry>
42       <varlistentry>
43         <term>d</term>
44         <listitem>
45           <para>整数のベクトルまたは行列</para>
46         </listitem>
47       </varlistentry>
48       <varlistentry>
49         <term>y</term>
50         <listitem>
51           <para>実数のベクトルまたは行列</para>
52         </listitem>
53       </varlistentry>
54     </variablelist>
55   </refsection>
56   <refsection>
57     <title>説明</title>
58     <para>
59       <literal>[N,D] = rat(x,tol)</literal> は,
60       <literal>abs(N./D - X) &lt;= tol*abs(x)</literal>の意味で
61       <literal>N./D</literal>が<literal>x</literal>に近くなるような
62       2つの整数行列を返します.
63       有理数近似は分数展開を丸めることにより生成されます.
64       デフォルトは
65       <literal>tol = 1.e-6*norm(X,1)</literal> です. <literal>y =
66         rat(x,tol)
67       </literal>
68       は商 <literal>N./D</literal>を返します.
69     </para>
70   </refsection>
71   <refsection>
72     <title>例</title>
73     <programlisting role="example"><![CDATA[ 
74 [n,d]=rat(%pi)
75 [n,d]=rat(%pi,1.d-12)
76 n/d-%pi
77  ]]></programlisting>
78   </refsection>
79   <refsection role="see also">
80     <title>参照</title>
81     <simplelist type="inline">
82       <member>
83         <link linkend="int">int</link>
84       </member>
85       <member>
86         <link linkend="round">round</link>
87       </member>
88     </simplelist>
89   </refsection>
90 </refentry>