gammaln: Logarithm of gamma function

View source: R/gammaln.R

gammalnR Documentation

Logarithm of gamma function

Description

Calculates the natural logarithm of the gamma function

Usage

gammaln(A)

Arguments

A

a non-negative, real matrix, vector or scalar

Value

An element-by-element ln(gamma())-transformed A

Note

For MATLAB output reproduction, non-positive values will be

Author(s)

Waldir Leoncio

Examples

gammaln(8)
gammaln(0)
gammaln(matrix(1:9, 3))
gammaln(-4:10)

matlab2r documentation built on Feb. 16, 2023, 10:39 p.m.

Related to gammaln in matlab2r...