Factorial. Equivalent to R's factorial(). Takes a single number: gamma(x + 1), defined for any real x that is not a negative integer.
factorial()
gamma(x + 1)
x
Argument.
x! = Gamma(x + 1) (NaN at negative integers, Infinity on overflow).
NaN
Infinity
factorial(5); // 120factorial(0.5); // 0.8862269254527579 Copy
factorial(5); // 120factorial(0.5); // 0.8862269254527579
Factorial. Equivalent to R's
factorial(). Takes a single number:gamma(x + 1), defined for any realxthat is not a negative integer.