Learn R Programming

EMJMCMC (version 1.5.0)

truncfactorial: Truncated factorial to avoid stack overflow for huge values

Description

truncated factorial to avoid stack overflow for huge values

Usage

truncfactorial(x)

Value

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

Arguments

x

a non-negative integer number

Examples

Run this code
truncfactorial(10)

Run the code above in your browser using DataLab