factorial: Factorial of a vli Object

07. FactorialR 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)

VeryLargeIntegers documentation built on May 31, 2023, 7:06 p.m.