japanese translation updated for elementary functions.
[scilab.git] / scilab / modules / elementary_functions / help / ja_JP / discrete / rat.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) 2008 - INRIA
6  * 
7  * This file must be used under the terms of the CeCILL.
8  * This source file is licensed as described in the file COPYING, which
9  * you should have received as part of this distribution.  The terms
10  * are also available at    
11  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
12  *
13  -->
14
15 <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" xmlns:scilab="http://www.scilab.org" xml:id="rat" xml:lang="ja">
16     
17     <refnamediv>
18         
19         <refname>rat</refname>
20         
21         <refpurpose>浮動小数点数の有理数近似</refpurpose>
22         
23     </refnamediv>
24     
25     <refsynopsisdiv>
26         
27         <title>呼び出し手順</title>
28         
29         <synopsis>[N,D]=rat(X [,tol])
30             
31             Y=rat(X [,tol])
32             
33         </synopsis>
34         
35     </refsynopsisdiv>
36     
37     <refsection>
38         
39         <title>引数</title>
40         
41         <variablelist>
42             
43             <varlistentry>
44                 
45                 <term>X</term>
46                 
47                 <listitem>
48                     
49                     <para>実数のベクトルまたは行列</para>
50                     
51                 </listitem>
52                 
53             </varlistentry>
54             
55             <varlistentry>
56                 
57                 <term>tol</term>
58                 
59                 <listitem>
60                     
61                     <para>正の実数スカラー, 許容誤差 (下記参照). デフォルト値は1d-6.</para>
62                     
63                 </listitem>
64                 
65             </varlistentry>
66             
67             <varlistentry>
68                 
69                 <term>N</term>
70                 
71                 <listitem>
72                     
73                     <para>整数のベクトルまたは行列</para>
74                     
75                 </listitem>
76                 
77             </varlistentry>
78             
79             <varlistentry>
80                 
81                 <term>D</term>
82                 
83                 <listitem>
84                     
85                     <para>整数のベクトルまたは行列</para>
86                     
87                 </listitem>
88                 
89             </varlistentry>
90             
91             <varlistentry>
92                 
93                 <term>Y</term>
94                 
95                 <listitem>
96                     
97                     <para>実数のベクトルまたは行列</para>
98                     
99                 </listitem>
100                 
101             </varlistentry>
102             
103         </variablelist>
104         
105     </refsection>
106     
107     <refsection>
108         
109         <title>説明</title>
110         
111         <para>
112             
113             <literal>[N,D] = rat(X,tol)</literal> は,
114             
115             <literal>abs(N./D - X) &lt;= tol*norm(X,1)*abs(X)</literal>の基準で
116             
117             <literal>N./D</literal>が<literal>X</literal>に近くなるような
118             
119             2つの整数行列を返します.
120             
121         </para>
122         
123         <para>
124             
125             <literal>y=rat(x,tol)</literal> は商
126             
127             <literal>N./D</literal>を返します.
128             
129         </para>
130         
131         <para>
132             
133             有理数近似は分数展開を丸めることにより生成されます.
134             
135         </para>
136         
137     </refsection>
138     
139     <refsection>
140         
141         <title>例</title>
142         
143         <programlisting role="example"><![CDATA[ 
144 [n,d]=rat([3.5, 1.333333,-0.8])
145 [n,d]=rat(%pi)
146 [n,d]=rat(%pi,1.d-12)
147 n/d-%pi
148  ]]></programlisting>
149         
150     </refsection>
151     
152     <refsection role="see also">
153         
154         <title>参照</title>
155         
156         <simplelist type="inline">
157             
158             <member>
159                 
160                 <link linkend="int">int</link>
161                 
162             </member>
163             
164             <member>
165                 
166                 <link linkend="round">round</link>
167                 
168             </member>
169             
170         </simplelist>
171         
172     </refsection>
173     
174 </refentry>
175