gammaln {matlab2r}R 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)

[Package matlab2r version 1.5.0 Index]