truncfactorial: Truncated factorial to avoid stack overflow for huge values

View source: R/factorial.R

truncfactorialR Documentation

Truncated factorial to avoid stack overflow for huge values

Description

truncated factorial to avoid stack overflow for huge values

Usage

truncfactorial(x)

Arguments

x

a non-negative integer number

Value

truncfactorial(x), truncated factorial as min(x!,171!)

Examples

truncfactorial(10)

EMJMCMC documentation built on June 22, 2024, 11:34 a.m.