Scilab-Branch-5.3-GIT
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
factorial
The factorial function
Calling Sequence
f = factorial ( n )
Parameters
- n :
a matrix of doubles. Must contain positive integers.
- f :
a matrix of doubles.
Description
Returns the factorial of n, that is, the product of all integers 1 * 2 * ... * n.
This function overflows as soon as n>170.
Examples
Authors
- Copyright (C) 2011 - DIGITEO - Michael Baudin
- Copyright (C) INRIA - Farid BELAHCENE
Bibliography
"Introduction to discrete probabilities", Michael Baudin, 2010
<< rat | Matemática discreta | Elementary matrices >> |