factorial: truncated factorial to avoid stack overflow for huge values

View source: R/the_mode_jumping_package5.r View source: R/the_mode_jumping_package4.r

factorialR Documentation

truncated factorial to avoid stack overflow for huge values

Usage

factorial(x)

Arguments

x

a non-negative integer number

Value

factorial(x)

truncated facctorial as min(x!,171!)

Examples

factorial(10)

aliaksah/EMJMCMC2016 documentation built on July 27, 2023, 5:48 a.m.