<?xml version="1.0" encoding="UTF-8"?>
+
<!--
+ *
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2011 - DIGITEO - Michael Baudin
* Copyright (C) 2008 - INRIA
*
* This file must be used under the terms of the CeCILL.
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- *
+ *
-->
+
<refentry version="5.0-subset Scilab" xml:id="bitand" xml:lang="ja"
xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
<refnamediv>
<refname>bitand</refname>
- <refpurpose>入力引数の2進表現に適用される論理積</refpurpose>
+ <refpurpose>ビット単位の論理積(AND)</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>呼び出し手順</title>
+ <synopsis>
+ z = bitand(x,y)
- <synopsis>[z]=bitand(x,y)</synopsis>
+ </synopsis>
</refsynopsisdiv>
<refsection>
<variablelist>
<varlistentry>
- <term>x</term>
+ <term>x :</term>
<listitem>
- <para>正の整数のスカラー/ベクトル/行列</para>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数(uint8, uint16 または uint32)の
+ m行n列行列.値は正の整数値である必要があります.
+ </para>
</listitem>
</varlistentry>
<varlistentry>
- <term>y</term>
+ <term>y :</term>
<listitem>
- <para>正の整数のスカラー/ベクトル/行列</para>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数(uint8, uint16 または uint32)の
+ m行n列行列.値は正の整数値である必要があります.
+ </para>
</listitem>
</varlistentry>
<varlistentry>
- <term>z</term>
+ <term>z :</term>
<listitem>
- <para>正の整数のスカラー/ベクトル/行列</para>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数.
+ </para>
</listitem>
</varlistentry>
</variablelist>
<refsection>
<title>説明</title>
-
<para>
- 2つの正の整数<literal>x</literal> および <literal>y</literal>を
- 指定すると,この関数は2進形式が
- <literal>x</literal> および <literal>y</literal>の2進形式の
- 論理積となるような10進数<literal>z</literal>を返します.
- (<literal>x</literal>,
- <literal>y</literal>, <literal>z</literal> は同じ大きさです.
- <literal>x</literal> (および <literal>y</literal>) の次元が
- 1より大きい場合, <literal>z(i)</literal>は,
- <literal>bitand(x(i),y(i))</literal>に等しくなります.</para>
+ 2つの正の整数 x および y を指定すると,この関数は2進形式が
+ x および y の2進形式の論理積となるような10進数を返します.
+ </para>
+ <para>
+ <literal>x</literal>,
+ <literal>y</literal>, <literal>z</literal> の大きさは同じです.
+ </para>
</refsection>
<refsection>
<title>例</title>
- <programlisting role="example"><![CDATA[
-// example 1 :
+ <programlisting role="example">
+ <![CDATA[
// '1010110' : is the binary representation of 86
// '1011011' : is the binary representation of 91
// '1010010' : is the binary representation for the AND of binary representation 86 and 91
// so the decimal number corresponding to the AND applied to binary forms 86 and 91 is : 82
-x=86; y=91
+x=86;
+y=91;
z=bitand(x,y)
-// example 2 :
-x=[12,45],y=[25,49]
+// Compute the bitwise AND of two matrices of doubles.
+x=[12,45];
+y=[25,49];
z=bitand(x,y)
- ]]></programlisting>
+
+// Compute the bitwise AND of two matrices of doubles.
+x = [0 1 0 1];
+y = [0 0 1 1];
+z = bitand(x, y)
+expected = [0 0 0 1];
+
+// Compute the bitwise AND of two matrices of integers.
+x = uint8([0 1 0 1]);
+y = uint8([0 0 1 1]);
+z = bitand(x, y)
+
+// The types of x and y cannot be mixed (error).
+x = [0 1 0 1];
+y = uint8([0 0 1 1]);
+z = bitand(x, y)
+
+// 13 is (01101)_2
+// 27 is (11011)_2
+// AND is (01001)_2 which is 9.
+bitand(uint8(13), uint8(27))
+bitand(13, 27)
+
+ ]]>
+ </programlisting>
+ </refsection>
+
+ <refsection>
+ <title>作者</title>
+ <simplelist type="vert">
+ <member>Copyright (C) 2011 - DIGITEO - Michael Baudin</member>
+ <member>Copyright (C) INRIA - Farid BELAHCENE</member>
+ <member>Copyright (C) 2008 - INRIA - Pierre MARECHAL</member>
+ </simplelist>
</refsection>
<refsection role="see also">
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ *
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2011 - DIGITEO - Michael Baudin
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+
+<refentry
+ version="5.0-subset Scilab"
+ xml:id="bitcmp"
+ xml:lang="ja"
+ xmlns="http://docbook.org/ns/docbook"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns:ns3="http://www.w3.org/1999/xhtml"
+ xmlns:mml="http://www.w3.org/1998/Math/MathML"
+ xmlns:db="http://docbook.org/ns/docbook">
+
+
+ <refnamediv>
+ <refname>bitcmp</refname>
+ <refpurpose>ビット毎の補数</refpurpose>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <title>呼び出し手順</title>
+ <synopsis>
+ y = bitcmp(x,n)
+ </synopsis>
+ </refsynopsisdiv>
+
+ <refsection>
+ <title>パラメータ</title>
+ <variablelist>
+ <varlistentry>
+ <term>x :</term>
+ <listitem>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数(uint8, uint16 または uint32)の
+ m行n列行列.値は正の整数値である必要があります.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>n :</term>
+ <listitem>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数(uint8, uint16 または uint32)の
+ m行n列行列.
+ 入力<literal>n</literal>は 1,2,...,bitmax の範囲であることが
+ 必要です.
+ ただし,bitmax は x の最大ビット数です.
+ 値は正の整数値である必要があります.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>y :</term>
+ <listitem>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数のm行n列行列.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+
+ <refsection>
+ <title>説明</title>
+ <para>
+ 符合なし整数<literal>x</literal>を指定すると, この関数は
+ <literal>x</literal>の2進数形式の補数を値とする
+ 符合なし整数を返します.
+ </para>
+
+ <para>
+ 整数 <literal>n</literal> は最大ビット数を指定します.
+ </para>
+
+ <para>
+ <literal>x</literal>の2進数表現のビット数が bitmax の値 (8, 16 または 32)
+ よりも小さい場合, bitmax ビット (8, 16 または 32)の補数とするために
+ ビット '1' がこの補数に付加されます.
+ </para>
+ </refsection>
+
+ <refsection>
+ <title>例</title>
+ <programlisting role="example">
+ <![CDATA[
+// 13 is (1101)_2
+// We insert zeros in the begining to get a 8-bit number:
+// (00001101)_2
+// The 8-bits complement is then (11110010)_2
+// which is 242
+bitcmp(13,8)
+expected = 242
+
+// The input argument can be an unsigned int
+bitcmp(uint8(99),8)
+expected = 156
+ ]]>
+ </programlisting>
+ </refsection>
+
+ <refsection>
+ <title>作者</title>
+ <simplelist type="vert">
+ <member>Copyright (C) 2011 - DIGITEO - Michael Baudin</member>
+ <member>Copyright (C) INRIA - Farid BELAHCENE</member>
+ <member>Copyright (C) 2008 - INRIA - Pierre MARECHAL</member>
+ </simplelist>
+ </refsection>
+
+</refentry>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ *
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2011 - DIGITEO - Michael Baudin
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+
+<refentry
+ version="5.0-subset Scilab"
+ xml:id="bitget"
+ xml:lang="ja"
+ xmlns="http://docbook.org/ns/docbook"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns:ns3="http://www.w3.org/1999/xhtml"
+ xmlns:mml="http://www.w3.org/1998/Math/MathML"
+ xmlns:db="http://docbook.org/ns/docbook">
+
+
+ <refnamediv>
+ <refname>bitget</refname>
+ <refpurpose>指定した位置のビットを取得</refpurpose>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <title>呼び出し手順</title>
+ <synopsis>
+ y = bitget(x,pos)
+
+ </synopsis>
+ </refsynopsisdiv>
+
+ <refsection>
+ <title>パラメータ</title>
+ <variablelist>
+ <varlistentry>
+ <term>x :</term>
+ <listitem>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数(uint8, uint16 または uint32)の
+ m行n列行列.値は正の整数値である必要があります.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>pos :</term>
+ <listitem>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数(uint8, uint16 または uint32)のm行n列行列.
+ 入力 <literal>pos</literal> は 1,2,...,bitmaxの範囲とする
+ 必要があります.ただし, bitmax は x の最大ビット数です.
+ 値は正の整数値である必要があります.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>y :</term>
+ <listitem>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+
+ <refsection>
+ <title>説明</title>
+ <para>
+ 符合なし整数 <literal>x</literal>を指定すると, この関数は
+ <literal>x</literal>の二進数表現の
+ <literal>pos</literal> 番目のビットを
+ 符合なし整数 (0または1)として返します.
+ </para>
+ </refsection>
+
+ <refsection>
+ <title>例</title>
+ <programlisting role="example">
+ <![CDATA[
+// 19 is (10011)_2
+// The 2nd bit is 1 (starting from the end).
+x=uint8(19);
+pos=2;
+y = bitget(x,pos)
+expected = 1;
+
+// 13 is (1101)_2
+dec2bin(13)
+bitget(uint8(13),4:-1:1)
+
+// The input x can be a positive double
+bitget(13,4:-1:1)
+ ]]>
+ </programlisting>
+ </refsection>
+
+ <refsection>
+ <title>作者</title>
+ <simplelist type="vert">
+ <member>Copyright (C) 2011 - DIGITEO - Michael Baudin</member>
+ <member>Copyright (C) INRIA - Farid BELAHCENE</member>
+ </simplelist>
+ </refsection>
+
+</refentry>
<?xml version="1.0" encoding="UTF-8"?>
+
<!--
+ *
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2011 - DIGITEO - Michael Baudin
* Copyright (C) 2008 - INRIA
*
* This file must be used under the terms of the CeCILL.
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- *
+ *
-->
+
<refentry version="5.0-subset Scilab" xml:id="bitor" xml:lang="ja"
xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
<refnamediv>
<refname>bitor</refname>
-
- <refpurpose>入力引数の2進表現に適用される論理和</refpurpose>
+ <refpurpose>ビット単位の論理和(OR)</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>呼び出し手順</title>
+ <synopsis>
+ z = bitor(x,y)
- <synopsis>[z]=bitor(x,y)</synopsis>
+ </synopsis>
</refsynopsisdiv>
<refsection>
<variablelist>
<varlistentry>
- <term>x</term>
+ <term>x :</term>
<listitem>
- <para>正の整数のスカラー/ベクトル/行列</para>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数(uint8, uint16 または uint32)の
+ m行n列行列.値は正の整数値である必要があります.
+ </para>
</listitem>
</varlistentry>
<varlistentry>
- <term>y</term>
-
+ <term>y :</term>
<listitem>
- <para>正の整数のスカラー/ベクトル/行列</para>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数(uint8, uint16 または uint32)の
+ m行n列行列.値は正の整数値である必要があります.
+ </para>
</listitem>
</varlistentry>
<varlistentry>
- <term>z</term>
+ <term>z :</term>
<listitem>
- <para>正の整数のスカラー/ベクトル/行列</para>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数.
+ </para>
</listitem>
</varlistentry>
</variablelist>
<title>説明</title>
<para>
- 2つの正の整数<literal>x</literal> および <literal>y</literal>を
- 指定すると,この関数は2進形式が
- <literal>x</literal> および <literal>y</literal>の2進形式の
- 論理和となるような10進数<literal>z</literal>を返します.
- (<literal>x</literal>,
- <literal>y</literal>, <literal>z</literal> は同じ大きさです.
- <literal>x</literal> (および <literal>y</literal>) の次元が
- 1より大きい場合, <literal>z(i)</literal>は,
- <literal>bitor(x(i),y(i))</literal>に等しくなります.</para>
+ 2つの正の整数 x および y を指定すると,この関数は2進形式が
+ x および y の2進形式の論理和となるような10進数を返します.
+ </para>
+ <para>
+ <literal>x</literal>,
+ <literal>y</literal>, <literal>z</literal> の大きさは同じです.
+ </para>
</refsection>
<refsection>
<title>例</title>
- <programlisting role="example"><![CDATA[
-// example 1 :
+ <programlisting role="example">
+ <![CDATA[
// '110000' : is the binary representation of 48
// '100101' : is the binary representation of 37
// '110101' : is the binary representation for the OR applied to the binary forms 48 and 37
// so the decimal number corresponding to the OR applied to binary forms 48 and 37 is : 53
-x=48; y=37
+x=48;
+y=37;
z=bitor(x,y)
-// example 2 :
-x=[12,45]; y=[25,49]
+// Compute the bitwise OR of two matrices of doubles.
+x=[12,45];
+y=[25,49];
z=bitor(x,y)
- ]]></programlisting>
+
+// Compute the bitwise OR of two matrices of doubles.
+x = [0 1 0 1];
+y = [0 0 1 1];
+z = bitor(x, y)
+expected = [0 1 1 1];
+
+// Compute the bitwise OR of two matrices of integers.
+x = uint8([0 1 0 1]);
+y = uint8([0 0 1 1]);
+z = bitor(x, y)
+
+// The types of x and y cannot be mixed (error).
+x = [0 1 0 1];
+y = uint8([0 0 1 1]);
+z = bitor(x, y)
+
+// 13 is (01101)_2
+// 27 is (11011)_2
+// OR is (11111)_2 which is 31.
+bitor(uint8(13), uint8(27))
+bitor(13, 27)
+
+ ]]>
+ </programlisting>
+ </refsection>
+
+ <refsection>
+ <title>作者</title>
+ <simplelist type="vert">
+ <member>Copyright (C) 2011 - DIGITEO - Michael Baudin</member>
+ <member>Copyright (C) INRIA - Farid BELAHCENE</member>
+ <member>Copyright (C) 2008 - INRIA - Pierre MARECHAL</member>
+ </simplelist>
</refsection>
<refsection role="see also">
<member><link linkend="dec2bin">dec2bin</link></member>
</simplelist>
</refsection>
+
</refentry>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ *
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2011 - DIGITEO - Michael Baudin
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+
+<refentry
+ version="5.0-subset Scilab"
+ xml:id="bitset"
+ xml:lang="ja"
+ xmlns="http://docbook.org/ns/docbook"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns:ns3="http://www.w3.org/1999/xhtml"
+ xmlns:mml="http://www.w3.org/1998/Math/MathML"
+ xmlns:db="http://docbook.org/ns/docbook">
+
+
+ <refnamediv>
+ <refname>bitset</refname>
+ <refpurpose>指定した位置のビットを設定</refpurpose>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <title>呼び出し手順</title>
+ <synopsis>
+ y = bitset(x,pos)
+ y = bitset(x,pos,v)
+ </synopsis>
+ </refsynopsisdiv>
+
+ <refsection>
+ <title>パラメータ</title>
+ <variablelist>
+ <varlistentry>
+ <term>x :</term>
+ <listitem>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数(uint8, uint16 または uint32)の
+ m行n列行列.値は正の整数値である必要があります.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>pos :</term>
+ <listitem>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数(uint8, uint16 または uint32)のm行n列行列.
+ 入力 <literal>pos</literal> は 1,2,...,bitmaxの範囲とする
+ 必要があります.ただし, bitmax は x の最大ビット数です.
+ 値は正の整数値である必要があります.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>v :</term>
+ <listitem>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数(uint8, uint16 または uint32)の
+ m行n列行列.値は正の整数値である必要があります.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>y :</term>
+ <listitem>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+
+ <refsection>
+ <title>説明</title>
+ <para>
+ 指定した位置のビットを設定します.
+ </para>
+
+ </refsection>
+
+ <refsection>
+ <title>例</title>
+ <programlisting role="example">
+ <![CDATA[
+// 9 is (01001)_2
+// We set the 5th bit to 1, which gives
+// (11001)_2 producing 25
+bitset(uint8(9), 5)
+expected = 25
+
+// Set the 5th bit of 25 to 0.
+bitset(uint8(25), 5, 0)
+expected = 9
+
+// The input can be a positive double
+bitset(25, 5, 0)
+expected = 9
+ ]]>
+ </programlisting>
+ </refsection>
+
+ <refsection>
+ <title>作者</title>
+ <simplelist type="vert">
+ <member>Copyright (C) 2011 - DIGITEO - Michael Baudin</member>
+ <member>Copyright (C) INRIA - Farid BELAHCENE</member>
+ <member>Copyright (C) 2008 - INRIA - Pierre MARECHAL</member>
+ </simplelist>
+ </refsection>
+
+</refentry>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ *
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2011 - DIGITEO - Michael Baudin
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+
+<refentry
+ version="5.0-subset Scilab"
+ xml:id="bitxor"
+ xml:lang="ja"
+ xmlns="http://docbook.org/ns/docbook"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns:ns3="http://www.w3.org/1999/xhtml"
+ xmlns:mml="http://www.w3.org/1998/Math/MathML"
+ xmlns:db="http://docbook.org/ns/docbook">
+
+
+ <refnamediv>
+ <refname>bitxor</refname>
+ <refpurpose>ビット単位の排他的論理和(XOR)</refpurpose>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <title>呼び出し手順</title>
+ <synopsis>
+ z = bitxor(x,y)
+
+ </synopsis>
+ </refsynopsisdiv>
+
+ <refsection>
+ <title>パラメータ</title>
+ <variablelist>
+ <varlistentry>
+ <term>x :</term>
+ <listitem>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数(uint8, uint16 または uint32)の
+ m行n列行列.値は正の整数値である必要があります.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>y :</term>
+ <listitem>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数(uint8, uint16 または uint32)の
+ m行n列行列.値は正の整数値である必要があります.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>z :</term>
+ <listitem>
+ <para>
+ m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
+ または符合なし整数.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+
+ <refsection>
+ <title>説明</title>
+ <para>
+ 2つの正の整数 x および y を指定すると,この関数は2進形式が
+ x および y の2進形式の排他的論理和となるような10進数を返します.
+ </para>
+ <para>
+ </para>
+ </refsection>
+
+ <refsection>
+ <title>例</title>
+ <programlisting role="example">
+ <![CDATA[
+// Compute the bitwise XOR of two matrices of doubles.
+x = [0 1 0 1];
+y = [0 0 1 1];
+z = bitxor(x, y)
+expected = [0 1 1 1];
+
+// Compute the bitwise XOR of two matrices of integers.
+x = uint8([0 1 0 1]);
+y = uint8([0 0 1 1]);
+z = bitxor(x, y)
+
+// The types of x and y cannot be mixed (error).
+x = [0 1 0 1];
+y = uint8([0 0 1 1]);
+z = bitxor(x, y)
+
+// 13 is (01101)_2
+// 27 is (11011)_2
+// XOR is (10110)_2 which is 22.
+bitxor(uint8(13), uint8(27))
+bitxor(13, 27)
+
+ ]]>
+ </programlisting>
+ </refsection>
+
+ <refsection>
+ <title>作者</title>
+ <simplelist type="vert">
+ <member>Copyright (C) 2011 - DIGITEO - Michael Baudin</member>
+ <member>Copyright (C) INRIA - Farid BELAHCENE</member>
+ <member>Copyright (C) 2008 - INRIA - Pierre MARECHAL</member>
+ </simplelist>
+ </refsection>
+
+</refentry>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ *
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2011 - DIGITEO - Michael Baudin
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+
+<refentry
+ version="5.0-subset Scilab"
+ xml:id="factorial"
+ xml:lang="ja"
+ xmlns="http://docbook.org/ns/docbook"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns:ns3="http://www.w3.org/1999/xhtml"
+ xmlns:mml="http://www.w3.org/1998/Math/MathML"
+ xmlns:db="http://docbook.org/ns/docbook">
+
+
+ <refnamediv>
+ <refname>factorial</refname>
+ <refpurpose>階乗関数</refpurpose>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <title>呼び出し手順</title>
+ <synopsis>
+ f = factorial ( n )
+
+ </synopsis>
+ </refsynopsisdiv>
+
+ <refsection>
+ <title>パラメータ</title>
+ <variablelist>
+ <varlistentry>
+ <term>n :</term>
+ <listitem>
+ <para>doubleの行列. 値は正の整数である必要があります.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>f :</term>
+ <listitem>
+ <para> doubleの行列.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+
+ <refsection>
+ <title>説明</title>
+ <para>
+ nの階乗,つまり,整数 1 * 2 * ... * nの積を返します.
+ </para>
+ <para>
+ この関数は n > 170 となるとオーバーフローします.
+ </para>
+ </refsection>
+
+ <refsection>
+ <title>例</title>
+ <programlisting role="example">
+ <![CDATA[
+// Make a table of factorial
+n = (0:30)';
+[n factorial(n)]
+
+// See the limits of factorial: f(171)=%inf
+factorial(170) // 7.257415615307998967e306
+factorial(171) // %inf
+
+// Plot the function on all its range.
+scf();
+plot ( 1:170 , factorial , "b-o" )
+h = gcf();
+h.children.log_flags="nln";
+
+ ]]>
+ </programlisting>
+ </refsection>
+
+ <refsection>
+ <title>作者</title>
+ <simplelist type="vert">
+ <member>Copyright (C) 2011 - DIGITEO - Michael Baudin</member>
+ <member>Copyright (C) INRIA - Farid BELAHCENE</member>
+ </simplelist>
+ </refsection>
+
+ <refsection>
+ <title>参考文献</title>
+ <para>"Introduction to discrete probabilities", Michael Baudin, 2010</para>
+ </refsection>
+</refentry>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2011 - INRIA - Serge Steer
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+<refentry version="5.0-subset Scilab" xml:id="repmat" xml:lang="ja"
+ 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">
+ <info>
+ <pubdate>$LastChangedDate: 2011-01-12 (mer, 12 jan 2011)
+ $</pubdate>
+ </info>
+
+ <refnamediv>
+ <refname>repmat</refname>
+
+ <refpurpose>配列を複製/タイル状に配置</refpurpose>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <title>呼び出し手順</title>
+
+ <synopsis>B = repmat(A,m,n,...)</synopsis>
+ <synopsis>B = repmat(A,siz)</synopsis>
+ <synopsis>B = repmat(A,m)</synopsis>
+ </refsynopsisdiv>
+
+ <refsection>
+ <title>引数</title>
+
+ <variablelist>
+ <varlistentry>
+ <term>A</term>
+
+ <listitem>
+ <para>入力二次元配列.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>m, n, ...</term>
+ <listitem>
+ <para>整数で, <literal>B</literal>の各次元に関する
+ <literal>A</literal> ブロックの数.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>siz</term>
+
+ <listitem>
+ <para>整数ベクトルで, 各要素は<literal>B</literal>の対応する次元に
+ 関する<literal>A</literal>ブロックの数を指定する.</para>
+ </listitem>
+ </varlistentry>
+
+
+ <varlistentry>
+ <term>B</term>
+
+ <listitem>
+ <para>
+ 2次元配列<literal>A</literal>をタイル状に配置した
+ 配列.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+
+ <refsection>
+ <title>説明</title>
+
+ <para><literal>repmat(A,m,n)</literal> または同様な
+ <literal>repmat(A,[m,n])</literal> は,<literal>A</literal>の
+ <literal>m</literal> x <literal>n</literal> のタイル状の
+ コピーからなる大きな行列を返します.
+ 結果の大きさは,<literal>[size(A,1)*M, size(A,2)*N]</literal>です.</para>
+
+ <para><literal>repmat(A,m)</literal> は,
+ <literal>m</literal> x <literal>m</literal>のタイル状コピーを作成します.</para>
+
+
+ <para><literal>repmat(A,[m n p ...])</literal> は,配列Aをタイル状に
+ コピーし,<literal>A</literal>のコピーからなる多次元配列を作成します.
+ 結果の大きさは,
+ <literal>[size(A,1)*M, size(A,2)*N, size(A,3)*P, ...] </literal>となります.</para>
+
+
+ <para>
+ 現時点では,実数,整数,論理値,文字列,多項式,有理数および
+ 疎行列の配列のみがサポートされています.
+ この関数の定義は,オーバーロード機能により拡張することができます.</para>
+ </refsection>
+
+ <refsection>
+ <title>例</title>
+
+ <programlisting role="example"><![CDATA[
+ repmat(1:3,2,2)
+ repmat(int8([1 0 1;0 1 0]),2,3,2)
+ repmat("Scilab",3,2)
+ t="Scilab";t(ones(3,2))
+ repmat([1/%s;2/(%s+1)],1,3)
+
+ ]]></programlisting>
+ </refsection>
+
+ <refsection>
+ <title>参照</title>
+
+ <simplelist type="inline">
+ <member><link linkend="matrix">matrix</link></member>
+
+ <member><link linkend="extraction">extraction</link></member>
+
+ <member><link linkend="size">size</link></member>
+ </simplelist>
+ </refsection>
+
+ <refsection>
+ <title>作者</title>
+
+ <para>Serge Steer, INRIA</para>
+ </refsection>
+</refentry>
<refnamediv>
<refname>cotd</refname>
- <refpurpose>cotangent</refpurpose>
+ <refpurpose>コタンジェント(余接,引数の単位:度)</refpurpose>
</refnamediv>
<refsynopsisdiv>