translation updated for string.
[scilab.git] / scilab / modules / string / help / ja_JP / evstr.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <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="evstr" xml:lang="ja">
4     
5     <refnamediv>
6         
7         <refname>evstr</refname>
8         
9         <refpurpose>式を評価する</refpurpose>
10         
11     </refnamediv>
12     
13     <refsynopsisdiv>
14         
15         <title>呼び出し手順</title>
16         
17         <synopsis>
18             
19             H = evstr(Z)
20             
21             [H, ierr] = evstr(Z)
22             
23         </synopsis>
24         
25     </refsynopsisdiv>
26     
27     <refsection>
28         
29         <title>引数</title>
30         
31         <variablelist>
32             
33             <varlistentry>
34                 
35                 <term>Z</term>
36                 
37                 <listitem>
38                     
39                     <para>
40                         
41                         文字列の行列 <varname>M</varname> または
42                         
43                         <code>list(M,Subexp)</code>
44                         
45                     </para>
46                     
47                     <variablelist>
48                         
49                         <varlistentry>
50                             
51                             <term>M</term>
52                             
53                             <listitem>
54                                 
55                                 <para>文字列の行列</para>
56                                 
57                             </listitem>
58                             
59                         </varlistentry>
60                         
61                         <varlistentry>
62                             
63                             <term>Subexp</term>
64                             
65                             <listitem>
66                                 
67                                 <para>文字列のベクトル</para>
68                                 
69                             </listitem>
70                             
71                         </varlistentry>
72                         
73                     </variablelist>
74                     
75                 </listitem>
76                 
77             </varlistentry>
78             
79             <varlistentry>
80                 
81                 <term>H</term>
82                 
83                 <listitem>
84                     
85                     <para>行列</para>
86                     
87                 </listitem>
88                 
89             </varlistentry>
90             
91             <varlistentry>
92                 
93                 <term>ierr</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             文字列の行列<varname>M</varname>を評価した結果を返します.
114             
115             行列の各要素は有効なScilab式を定義している必要があります.
116             
117         </para>
118         
119         <para>
120             
121             <varname>M</varname>式の評価でエラーが発生した場合,
122             
123             戻り値が1つの版,<code>H = evstr(M)</code>,では通常と同様に
124             
125             エラーを発生します.
126             
127             一方,戻り値が2つの版,<code>[H,ierr] = evstr(M)</code>,
128             
129             はエラーを発生しませんが,<varname>ierr</varname>にエラー番号が
130             
131             返されます.
132             
133         </para>
134         
135         <para>
136             
137             <varname>Z</varname> がリストの場合, <varname>Subexp</varname> は
138             
139             文字列のベクトルとなり,<varname>M</varname>を評価する前に
140             
141             評価されるsub_expressionsを定義します.
142             
143             これらのsub_expressionsは,<varname>M</varname>の中では
144             
145             <literal>%(k)</literal>として参照する必要があります.
146             
147             ただし,<literal>k</literal>は<varname>Subexp</varname>における
148             
149             sub-expressionのインデックスです.
150             
151         </para>
152         
153         <para>
154             
155             <code>evstr('a = 1')</code> は有効ではありません 
156             
157             (代わりに<function>execstr</function>を使用してください).
158             
159         </para>
160         
161         <para>
162             <literal>Nan</literal>, <literal>NaN</literal>
163             
164             は <constant>%nan</constant> と評価されます.
165         </para>
166         
167         <para>
168             
169             <literal>Inf</literal> は <constant>%inf</constant> と評価されます.
170             
171         </para>
172         
173         <note>
174             
175             <varname>Z</varname> は,継続記号 (..)で分解できない
176             
177             ことに注意してください.
178             
179         </note>
180         
181     </refsection>
182     
183     <refsection>
184         
185         <title>例</title>
186         
187         <programlisting role="example">
188             
189             a = 1; b = 2;
190             
191             Z = ['a', 'b'] ;
192             
193             evstr(Z)
194             
195             
196             
197             Z = list(['%(1)','%(1)-%(2)'],['a+1','b+1']);
198             
199             evstr(Z)
200             
201             
202             
203             evstr('NaN'), evstr('Inf')
204             
205             
206             
207             //The two return values version
208             
209             [H, ierr] = evstr(Z) // no error
210             
211             Z = ['a', 'b', 'c'] ;// the variable c is undefined
212             
213             [H, ierr] = evstr(Z) // error 4: Undefined variable: c
214             
215         </programlisting>
216         
217     </refsection>
218     
219     <refsection role="see also">
220         
221         <title>参照</title>
222         
223         <simplelist type="inline">
224             
225             <member>
226                 
227                 <link linkend="execstr">execstr</link>
228                 
229             </member>
230             
231         </simplelist>
232         
233     </refsection>
234     
235 </refentry>
236