Scilab 6.1.0
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
gamma
The gamma function.
Syntax
y = gamma(x)
Arguments
- x
scalar, vector, matrix, or hypermatrix of real numbers.
gamma
can be overloaded for complex numbers or of lists, tlists or mlists.- y
real vector or matrix with same size than x.
Description
gamma(x)
evaluates the gamma function at all the
elements of x
. The gamma function is defined by
:
and generalizes the factorial function for real numbers
(gamma(u+1) = u*gamma(u)
).
Examples
// simple examples gamma(0.5) gamma(6)-prod(1:5)
See also
History
Version | Description |
5.4.0 | Overloading allowed for list, mlist, tlist and hypermatrix types. |
6.0.2 |
|
Report an issue | ||
<< findm | Fonctions spéciales | gammaln >> |