Package 'logOfGamma'

Title: Natural Logarithms of the Gamma Function for Large Values
Description: Uses approximations to compute the natural logarithm of the Gamma function for large values.
Authors: Phillip Labuschagne <[email protected]>
Maintainer: Phillip Labuschagne <[email protected]>
License: GPL-3
Version: 0.0.1
Built: 2025-02-28 06:02:49 UTC
Source: https://github.com/philliplab/logofgamma

Help Index


Computes the natural logarithm of the gamma function.

Description

For values larger than 12, an approximation is used.

Usage

gammaln(x)

Arguments

x

A numeric vector of positive numbers.

Examples

gammaln(5)
gammaln(50)

Computes the natural logarithm of the gamma function for values larger than 12.

Description

Uses the approximation in Hart et al, Computer Approximations 1968.

Usage

gammaln_internal(x)

Arguments

x

A numeric value of length 1 greater than 12

Examples

gammaln_internal(50)