839a1c01ac99264f6b98bfa6480e637decafdfb7
[scilab.git] / scilab / modules / special_functions / help / pt_BR / gamma.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) 2008 - INRIA
5  *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  -->
16 <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="gamma" xml:lang="pt">
17     <refnamediv>
18         <refname>gamma</refname>
19         <refpurpose>função gama </refpurpose>
20     </refnamediv>
21     <refsynopsisdiv>
22         <title>Seqüência de Chamamento</title>
23         <synopsis>y = gamma(x)</synopsis>
24     </refsynopsisdiv>
25     <refsection>
26         <title>Parâmetros</title>
27         <variablelist>
28             <varlistentry>
29                 <term>x</term>
30                 <listitem>
31                     <para>
32                        scalar, vector, matrix, or hypermatrix of real numbers.
33                     </para>
34                     <note>
35                       <literal>gamma</literal> can be overloaded for complex numbers or
36                       of lists, tlists or mlists.
37                     </note>
38                 </listitem>
39             </varlistentry>
40             <varlistentry>
41                 <term>y</term>
42                 <listitem>
43                     <para>vetor ou matriz de reais ou complexos de mesmo tamanho que
44                         x
45                     </para>
46                 </listitem>
47             </varlistentry>
48         </variablelist>
49     </refsection>
50     <refsection>
51         <title>Descrição</title>
52         <para>
53             <literal>gamma(x)</literal> avalia a função gama em todos os
54             elementos de <literal>x</literal>. A função gama é defininda por :
55         </para>
56         <programlisting role=""><![CDATA[
57             /+oo
58             |   x-1  -t
59 gamma(x) =  |  t    e    dt
60             /0
61  ]]></programlisting>
62         <para>e generaliza a função fatorial para os números reais
63             (<literal>gamma(u+1) = u*gamma(u)</literal>).
64         </para>
65     </refsection>
66     <refsection>
67         <title>Exemplos</title>
68         <programlisting role="example"><![CDATA[
69 // exemplos simples
70 gamma(0.5)
71 gamma(6)-prod(1:5)
72
73 // o gráfico da função gama em [a,b]
74 a = -3; b = 5;
75 x = linspace(a,b,40000);
76 y = gamma(x);
77 clf()
78 plot2d(x, y, style=0, axesflag=5, rect=[a, -10, b, 10])
79 xtitle("A função gama em  ["+string(a)+","+string(b)+"]")
80 show_window() ]]></programlisting>
81     </refsection>
82     <refsection role="see also">
83         <title>Ver Também</title>
84         <simplelist type="inline">
85             <member>
86                 <link linkend="gammaln">gammaln</link>
87             </member>
88             <member>
89                 <link linkend="dlgamma">dlgamma</link>
90             </member>
91             <member>
92                 <link linkend="factorial">factorial</link>
93             </member>
94         </simplelist>
95     </refsection>
96     <refsection>
97         <title>Histórico</title>
98         <revhistory>
99             <revision>
100                 <revnumber>5.4.0</revnumber>
101                 <revremark>Overloading allowed for list, mlist, tlist and hypermatrix types.</revremark>
102             </revision>
103             <revision>
104               <revnumber>6.0.2</revnumber>
105               <revremark>
106                 <itemizedlist>
107                   <listitem>
108                     The input can now be an hypermatrix.
109                   </listitem>
110                   <listitem>
111                     <literal>gamma</literal> can now be overloaded for complex numbers.
112                   </listitem>
113                 </itemizedlist>
114               </revremark>
115             </revision>
116         </revhistory>
117     </refsection>
118 </refentry>