1 <?xml version="1.0" encoding="UTF-8"?>
\r
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
\r
4 * Copyright (C) 2008 - INRIA
\r
6 * This file must be used under the terms of the CeCILL.
\r
7 * This source file is licensed as described in the file COPYING, which
\r
8 * you should have received as part of this distribution. The terms
\r
9 * are also available at
\r
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
\r
13 <refentry version="5.0-subset Scilab" xml:id="primes" xml:lang="ja"
\r
14 xmlns="http://docbook.org/ns/docbook"
\r
15 xmlns:xlink="http://www.w3.org/1999/xlink"
\r
16 xmlns:svg="http://www.w3.org/2000/svg"
\r
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
\r
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
\r
19 xmlns:db="http://docbook.org/ns/docbook">
\r
21 <pubdate>$LastChangedDate$</pubdate>
\r
25 <refname>primes</refname>
\r
27 <refpurpose>素数関数</refpurpose>
\r
31 <title>呼び出し手順</title>
\r
33 <synopsis>[y]=primes(x)</synopsis>
\r
37 <title>パラメータ</title>
\r
44 <para>実数のスカラー</para>
\r
61 <para>実数 <literal>x</literal>を指定すると, <literal>primes(x)</literal>
\r
62 は,1 と <literal>x</literal>の間の全ての素数を含む
\r
63 ベクトル<literal>y</literal>を返します.
\r
64 <literal>x<2 </literal>の場合,
\r
65 <literal>primes(x)</literal> は空の行列を返します.</para>
\r
71 <programlisting role="example"><![CDATA[
\r
74 ]]></programlisting>
\r
80 <simplelist type="inline">
\r
81 <member><link linkend="factor">factor</link></member>
\r