07. Factorial {VeryLargeIntegers} | R Documentation |
factvli
computes and returns the factorial of a vli (Very Large Integers) object. Given a positive integer n
, the factorial of n
, n!
, is defined as the product of all the positive integers from 1
to n
.
factvli(n) ## Default S3 method: factvli(n) ## S3 method for class 'numeric' factvli(n) ## S3 method for class 'vli' factvli(n)
n |
object of class vli or 32 bits integer |
object of class vli
Javier Leiva Cuadrado
## Not run: n <- as.vli("420") factvli(n) ## End(Not run)