Learn R Programming

matlab2r (version 1.5.0)

gammaln: Logarithm of gamma function

Description

Calculates the natural logarithm of the gamma function

Usage

gammaln(A)

Value

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

Arguments

A

a non-negative, real matrix, vector or scalar

Author

Waldir Leoncio

Examples

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

Run the code above in your browser using DataLab