07. Factorial {VeryLargeIntegers} | R Documentation |
Factorial of a vli Object
Description
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
.
Usage
factvli(n)
## Default S3 method:
factvli(n)
## S3 method for class 'numeric'
factvli(n)
## S3 method for class 'vli'
factvli(n)
Arguments
n |
object of class vli or 32 bits integer |
Value
object of class vli
Author(s)
Javier Leiva Cuadrado
Examples
## Not run:
n <- as.vli("420")
factvli(n)
## End(Not run)
[Package VeryLargeIntegers version 0.2.1 Index]