Scilab 5.3.1

Please note that the recommended version of Scilab is 6.1.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

## Comments

Add a comment:Please login to comment this page.