|MATLAB Function Reference|
factorial(N), for scalar
N, is the product of all the integers from
N is an
factorial(N) is the factorial for each element of
Since double precision numbers only have about 15 digits, the answer is only accurate for
n <= 21. For larger
n, the answer will have the right magnitude, and is accurate for the first 15 digits.
© 1994-2005 The MathWorks, Inc.