# gamma

Gamma special function

## Syntax

* R = gamma(M)

## Input argument

* M - a real single or real double matrix.

## Output argument

* R - result of gamma function.

## Description

gamma computes the gamma function.

gamma is an extension of the factorial function.

## Example

```matlab
R = gamma([-pi:0.1:pi])
```

## See also

[gammaln](gammaln), [factorial](../elementary_functions/factorial).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
