Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: xplore
See also: cumprod

Quantlet: factorial
Description: Computes the factorial for all values in an array.

Usage: m = factorial (n)
Input:
n array
Output:
m array containing the factorials

Note:

Example:
library("xplore")
randomize(0)
x = 3*normal(2, 3) ~(0|0)
factorial(x)

Result:
Contents of m
[1,]       1      120       24        1
[2,]       6        6        2        1



Author: T. Koetter, 19970617 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006