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

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

See also

gamma.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated