1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2008 - INRIA
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
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.
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">
18 <refname>gamma</refname>
19 <refpurpose>função gama </refpurpose>
22 <title>Seqüência de Chamamento</title>
23 <synopsis>y = gamma(x)</synopsis>
26 <title>Parâmetros</title>
32 scalar, vector, matrix, or hypermatrix of real numbers.
35 <literal>gamma</literal> can be overloaded for complex numbers or
36 of lists, tlists or mlists.
43 <para>vetor ou matriz de reais ou complexos de mesmo tamanho que
51 <title>Descrição</title>
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 :
56 <programlisting role=""><![CDATA[
62 <para>e generaliza a função fatorial para os números reais
63 (<literal>gamma(u+1) = u*gamma(u)</literal>).
67 <title>Exemplos</title>
68 <programlisting role="example"><![CDATA[
73 // o gráfico da função gama em [a,b]
75 x = linspace(a,b,40000);
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>
82 <refsection role="see also">
83 <title>Ver Também</title>
84 <simplelist type="inline">
86 <link linkend="gammaln">gammaln</link>
89 <link linkend="dlgamma">dlgamma</link>
92 <link linkend="factorial">factorial</link>
97 <title>Histórico</title>
100 <revnumber>5.4.0</revnumber>
101 <revremark>Overloading allowed for list, mlist, tlist and hypermatrix types.</revremark>
104 <revnumber>6.0.2</revnumber>
108 The input can now be an hypermatrix.
111 <literal>gamma</literal> can now be overloaded for complex numbers.