added japanese translation of uicontrol/2.
[scilab.git] / scilab / modules / elementary_functions / help / ja_JP / bitwise / bitand.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4  * 
5  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
6  * Copyright (C) 2011 - DIGITEO - Michael Baudin
7  * Copyright (C) 2008 - INRIA
8  * 
9  * This file must be used under the terms of the CeCILL.
10  * This source file is licensed as described in the file COPYING, which
11  * you should have received as part of this distribution.  The terms
12  * are also available at    
13  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
14  * 
15  -->
16
17 <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="bitand" xml:lang="ja">
18     
19     <refnamediv>
20         
21         <refname>bitand</refname>
22         
23         <refpurpose>ビット単位の論理積(AND)</refpurpose>
24         
25     </refnamediv>
26     
27     <refsynopsisdiv>
28         
29         <title>呼び出し手順</title>
30         
31         <synopsis>
32             
33             z = bitand(x,y)
34             
35         </synopsis>
36         
37     </refsynopsisdiv>
38     
39     <refsection>
40         
41         <title>パラメータ</title>
42         
43         <variablelist>
44             
45             <varlistentry>
46                 
47                 <term>x :</term>
48                 
49                 <listitem>
50                     
51                     <para>
52                         
53                         <literal>m</literal>行<literal>n</literal>列の行列(double)
54                         
55                         または<literal>m1</literal> x <literal>m2</literal> 
56                         
57                         x ... x <literal>mm</literal> ハイパー行列(double)
58                         
59                         または符合なし整数(<literal>uint8</literal>, 
60                         
61                         <literal>uint16</literal> または <literal>uint32</literal>)の
62                         
63                         <literal>m</literal>行<literal>n</literal>列行列.
64                         
65                         値は正の整数値である必要があります.
66                         
67                     </para>
68                     
69                 </listitem>
70                 
71             </varlistentry>
72             
73             <varlistentry>
74                 
75                 <term>y :</term>
76                 
77                 <listitem>
78                     
79                     <para>
80                         
81                         <literal>m</literal>行<literal>n</literal>列の行列(double)
82                         
83                         または<literal>m1</literal> x <literal>m2</literal> x ... x 
84                         
85                         <literal>mm</literal> ハイパー行列(double)
86                         
87                         または符合なし整数(<literal>uint8</literal>, 
88                         
89                         <literal>uint16</literal> または <literal>uint32</literal>)の
90                         
91                         <literal>m</literal>行<literal>n</literal>列行列.
92                         
93                         値は正の整数値である必要があります.
94                         
95                     </para>
96                     
97                 </listitem>
98                 
99             </varlistentry>
100             
101             <varlistentry>
102                 
103                 <term>z :</term>
104                 
105                 <listitem>
106                     
107                     <para>
108                         
109                         <literal>m</literal>行<literal>n</literal>列の
110                         
111                         行列(double)または<literal>m1</literal> x 
112                         
113                         <literal>m2</literal> x ... x <literal>mm</literal> 
114                         
115                         ハイパー行列(double)
116                         
117                         または符合なし整数.
118                         
119                     </para>
120                     
121                 </listitem>
122                 
123             </varlistentry>
124             
125         </variablelist>
126         
127     </refsection>
128     
129     <refsection>
130         
131         <title>説明</title>
132         
133         <para>
134             
135             2つの正の整数 <varname>x</varname> および <varname>y</varname> 
136             
137             を指定すると,この関数は2進形式が
138             
139             <varname>x</varname> および <varname>y</varname> の
140             
141             2進形式の論理積となるような10進数を返します.
142             
143         </para>
144         
145         <para>
146             
147             <varname>x</varname>, <varname>y</varname>, <varname>z</varname>
148             
149             の大きさは同じです. 
150             
151         </para>
152         
153     </refsection>
154     
155     <refsection>
156         
157         <title>例</title>
158         
159         <programlisting role="example"><![CDATA[
160 // '1010110' : is the binary representation of 86 
161 // '1011011' : is the binary representation of 91   
162 // '1010010' : is the binary representation for the AND of binary representation 86 and 91 
163 // so the decimal number corresponding to the AND  applied to binary forms 86 and 91 is : 82
164 x=86; 
165 y=91;
166 z=bitand(x,y)
167
168 // Compute the bitwise AND of two matrices of doubles.
169 x=[12,45];
170 y=[25,49];
171 z=bitand(x,y)
172
173 // Compute the bitwise AND of two matrices of doubles.
174 x = [0 1 0 1];
175 y = [0 0 1 1];
176 z = bitand(x, y)
177 expected = [0 0 0 1];
178
179 // Compute the bitwise AND of two matrices of integers.
180 x = uint8([0 1 0 1]);
181 y = uint8([0 0 1 1]);
182 z = bitand(x, y)
183
184 // The types of x and y cannot be mixed (error).
185 x = [0 1 0 1];
186 y = uint8([0 0 1 1]);
187 // z = bitand(x, y)
188
189 //  13 is (01101)_2
190 //  27 is (11011)_2
191 // AND is (01001)_2 which is 9.
192 bitand(uint8(13), uint8(27))
193 bitand(13, 27)
194
195    ]]></programlisting>
196         
197     </refsection>
198     
199     <refsection role="see also">
200         
201         <title>参照</title>
202         
203         <simplelist type="inline">
204             
205             <member>
206                 
207                 <link linkend="bitor">bitor</link>
208                 
209             </member>
210             
211             <member>
212                 
213                 <link linkend="bin2dec">bin2dec</link>
214                 
215             </member>
216             
217             <member>
218                 
219                 <link linkend="dec2bin">dec2bin</link>
220                 
221             </member>
222             
223         </simplelist>
224         
225     </refsection>
226     
227 </refentry>
228