Get ride of the useless pubdate tag.
[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   <refnamediv>
15     <refname>rat</refname>
16     <refpurpose>浮動小数点数の有理数近似</refpurpose>
17   </refnamediv>
18   <refsynopsisdiv>
19     <title>呼び出し手順</title>
20     <synopsis>[N,D]=rat(x [,tol])
21       y=rat(x [,tol])
22     </synopsis>
23   </refsynopsisdiv>
24   <refsection>
25     <title>パラメータ</title>
26     <variablelist>
27       <varlistentry>
28         <term>x</term>
29         <listitem>
30           <para>実数のベクトルまたは行列</para>
31         </listitem>
32       </varlistentry>
33       <varlistentry>
34         <term>n</term>
35         <listitem>
36           <para>整数のベクトルまたは行列</para>
37         </listitem>
38       </varlistentry>
39       <varlistentry>
40         <term>d</term>
41         <listitem>
42           <para>整数のベクトルまたは行列</para>
43         </listitem>
44       </varlistentry>
45       <varlistentry>
46         <term>y</term>
47         <listitem>
48           <para>実数のベクトルまたは行列</para>
49         </listitem>
50       </varlistentry>
51     </variablelist>
52   </refsection>
53   <refsection>
54     <title>説明</title>
55     <para>
56       <literal>[N,D] = rat(x,tol)</literal> は,
57       <literal>abs(N./D - X) &lt;= tol*abs(x)</literal>の意味で
58       <literal>N./D</literal>が<literal>x</literal>に近くなるような
59       2つの整数行列を返します.
60       有理数近似は分数展開を丸めることにより生成されます.
61       デフォルトは
62       <literal>tol = 1.e-6*norm(X,1)</literal> です. <literal>y =
63         rat(x,tol)
64       </literal>
65       は商 <literal>N./D</literal>を返します.
66     </para>
67   </refsection>
68   <refsection>
69     <title>例</title>
70     <programlisting role="example"><![CDATA[ 
71 [n,d]=rat(%pi)
72 [n,d]=rat(%pi,1.d-12)
73 n/d-%pi
74  ]]></programlisting>
75   </refsection>
76   <refsection role="see also">
77     <title>参照</title>
78     <simplelist type="inline">
79       <member>
80         <link linkend="int">int</link>
81       </member>
82       <member>
83         <link linkend="round">round</link>
84       </member>
85     </simplelist>
86   </refsection>
87 </refentry>