# factorial

Factorial function

## Syntax

* R = factorial(M)

## Input argument

* M - a integer, real single or real double matrix.

## Output argument

* R - result of factorial function.

## Description

**factorial** computes the factorial function: the product of all integers values: 1 \* 2 \* ... \* M

## Example

```matlab
R = factorial([1:10])
R = factorial(int8(4))
```

## See also

[gamma](https://github.com/Nelson-numerical-software/nelson-gitbook/blob/master/en/elementary_functions/gamma.html).

## History

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

## Author

Allan CORNET
