Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Funções Especiais > gamma

gamma

função gama

Seqüência de Chamamento

y = gamma(x)

Parâmetros

x

scalar, vector, matrix, or hypermatrix of real numbers.

gamma can be overloaded for complex numbers or of lists, tlists or mlists.
y

vetor ou matriz de reais ou complexos de mesmo tamanho que x

Descrição

gamma(x) avalia a função gama em todos os elementos de x. A função gama é defininda por :

/+oo
|   x-1  -t
gamma(x) =  |  t    e    dt
/0

e generaliza a função fatorial para os números reais (gamma(u+1) = u*gamma(u)).

Exemplos

// exemplos simples
gamma(0.5)
gamma(6)-prod(1:5)

// o gráfico da função gama em [a,b]
a = -3; b = 5;
x = linspace(a,b,40000);
y = gamma(x);
clf()
plot2d(x, y, style=0, axesflag=5, rect=[a, -10, b, 10])
xtitle("A função gama em  ["+string(a)+","+string(b)+"]")
show_window()

Ver Também

  • gammaln — o logaritmo (natural) da função gama
  • dlgamma — derivada da função gammaln, função psi
  • factorial — factorial function : product of the n first positive integers

Histórico

VersionDescription
5.4.0 Overloading allowed for list, mlist, tlist and hypermatrix types.
6.0.2
  • The input can now be an hypermatrix.
  • gamma can now be overloaded for complex numbers.
Report an issue
<< findm Funções Especiais gammaln >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 25 08:52:31 CET 2020