Home > freetb4matlab > specfun > factorial.m

factorial

PURPOSE ^

% Return the factorial of @var{n} where @var{n} is a positive integer. If

SYNOPSIS ^

function x = factorial (n)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} factorial (@var{n})
% Return the factorial of @var{n} where @var{n} is a positive integer.  If
% @var{n} is a scalar, this is equivalent to @code{prod (1:@var{n})}.  For
% vector or matrix arguments, return the factorial of each element in the
% array.  For non-integers see the generalized factorial function
% @code{gamma}.
% @seealso{prod, gamma}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003