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


Library: xplore
See also: cumprod

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

Author: TTK, 970617
(C) MD*TECH Method and Data Technologies, 21.9.2000