GetLogFactorials: GetLogFactorials

Description Usage Arguments Details Value Author(s)

View source: R/GetLogFactorials.R

Description

GetLogFactorials

Usage

1

Arguments

n

numeric, the max value needed

Details

Calculates the logarithm of x! for all x <= n and places those in a vector. To get around that you cannot index a vector with 0, you should always index this vector with the value + 1. The purpose of this function is that x! cannot be calculated for x > 170, while that is not a problem for log(x!), but you cannot use the built-in factorial function in matlab and do log afterwards!

Value

vector

Author(s)

Johan Gustafsson, Juan Inda, <inda@chalmers.se>


SysBioChalmers/DSAVE-R documentation built on Oct. 19, 2021, 11:37 p.m.