<?xml version="1.0" encoding="UTF-8"?>
+
<!--
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2008 - INRIA
- *
- * 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
+ *
+ * Copyright (C) 2012 - 2016 - Scilab Enterprises
+ *
+ * This file is hereby licensed under the terms of the GNU GPL v2.0,
+ * pursuant to article 5.3.4 of the CeCILL v.2.1.
+ * This file was originally licensed under the terms of the CeCILL v2.1,
+ * and continues to be available under such terms.
+ * For more information, see the COPYING file which you should have received
+ * along with this program.
*
-->
-<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="primes" xml:lang="ja">
+
+<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="primes" xml:lang="ja">
+
<refnamediv>
+
<refname>primes</refname>
+
<refpurpose>素数関数</refpurpose>
+
</refnamediv>
+
<refsynopsisdiv>
+
<title>呼び出し手順</title>
- <synopsis>[y]=primes(x)</synopsis>
+
+ <synopsis>y = primes(x)</synopsis>
+
</refsynopsisdiv>
+
<refsection>
- <title>パラメータ</title>
+
+ <title>引数</title>
+
<variablelist>
+
<varlistentry>
+
<term>x</term>
+
<listitem>
+
<para>実数のスカラー</para>
+
</listitem>
+
</varlistentry>
+
<varlistentry>
+
<term>y</term>
+
<listitem>
+
<para>ベクトル</para>
+
</listitem>
+
</varlistentry>
+
</variablelist>
+
</refsection>
+
<refsection>
+
<title>説明</title>
+
<para>
+
実数 <literal>x</literal>を指定すると, <literal>primes(x)</literal>
+
は,1 と <literal>x</literal>の間の全ての素数を含む
+
ベクトル<literal>y</literal>を返します.
- <literal>x<2 </literal>の場合,
+
+ <literal>x<2 </literal> の場合,
+
<literal>primes(x)</literal> は空の行列を返します.
+
</para>
+
</refsection>
+
<refsection>
+
<title>例</title>
- <programlisting role="example"><![CDATA[
-x=35
-y=primes(x)
- ]]></programlisting>
+
+ <programlisting role="example"><![CDATA[
+primes(35)
+ ]]></programlisting>
+ <screen><![CDATA[
+--> primes(35)
+ ans =
+ 2. 3. 5. 7. 11. 13. 17. 19. 23. 29. 31.
+]]></screen>
+
</refsection>
+
<refsection role="see also">
+
<title>参照</title>
+
<simplelist type="inline">
+
<member>
+
<link linkend="factor">factor</link>
+
</member>
+
</simplelist>
+
</refsection>
+
</refentry>
+