Massive indent of all codes:
[scilab.git] / scilab / modules / elementary_functions / help / ja_JP / discrete / factorial.xml
1         <?xml version="1.0" encoding="UTF-8"?>
2     <!--
3  * 
4  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
5  * Copyright (C) 2011 - DIGITEO - Michael Baudin
6  * 
7  * This file must be used under the terms of the CeCILL.
8  * This source file is licensed as described in the file COPYING, which
9  * you should have received as part of this distribution.  The terms
10  * are also available at    
11  * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
12  * 
13  -->
14     <refentry 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" xmlns:scilab="http://www.scilab.org" xml:id="factorial" xml:lang="ja">
15         <refnamediv>
16             <refname>factorial</refname>
17             <refpurpose>階乗関数</refpurpose>
18         </refnamediv>
19         <refsynopsisdiv>
20             <title>呼び出し手順</title>
21             <synopsis>
22                 f = factorial ( n )
23                 
24             </synopsis>
25         </refsynopsisdiv>
26         <refsection>
27             <title>パラメータ</title>
28             <variablelist>
29                 <varlistentry>
30                     <term>n :</term>
31                     <listitem>
32                         <para>doubleの行列. 値は正の整数である必要があります.</para>
33                     </listitem>
34                 </varlistentry>
35                 <varlistentry>
36                     <term>f :</term>
37                     <listitem>
38                         <para> doubleの行列.</para>
39                     </listitem>
40                 </varlistentry>
41             </variablelist>
42         </refsection>
43         <refsection>
44             <title>説明</title>
45             <para>
46                 nの階乗,つまり,整数 1 * 2 * ... * nの積を返します.
47             </para>
48             <para>
49                 この関数は n &gt; 170 となるとオーバーフローします.
50             </para>
51         </refsection>
52         <refsection>
53             <title>例</title>
54             <programlisting role="example"><![CDATA[
55 // Make a table of factorial
56 n = (0:30)';
57 [n factorial(n)]
58
59 // See the limits of factorial: f(171)=%inf
60 factorial(170) // 7.257415615307998967e306
61 factorial(171) // %inf
62
63 // Plot the function on all its range.
64 scf();
65 plot ( 1:170 , factorial , "b-o" )
66 h = gcf();
67 h.children.log_flags="nln";
68
69    ]]></programlisting>
70         </refsection>
71         <refsection>
72             <title>参考文献</title>
73             <para>
74                 <ulink url="http://www.scilab.org/en/support/documentation/tutorials">Introduction to discrete probabilities</ulink>, Michael Baudin
75             </para>
76         </refsection>
77     </refentry>