Compute the factorial of N where N is a non-negative integer.
If N is a scalar, this is equivalent to
factorial (N) = 1 * 2 * … * N.
For vector, matrix or array arguments, return the factorial of each element in the array.
For non-integers see the generalized factorial function gamma
.
Note that the factorial function grows large quite quickly, and the result
cannot be represented exactly in binary64 for N ≥ 23 and will overflow
for N ≥ 171.
Accuracy: The result is a tight enclosure.
factorial (infsup (6)) ⇒ ans = [720]
See also: @infsup/prod, @infsup/gamma, @infsup/gammaln.
Package: interval