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