Learn R Programming

CVXR (version 1.9.1)

loggamma: Elementwise log of the gamma function

Description

Piecewise linear approximation of log(gamma(x)). Has modest accuracy over the full range, approaching perfect accuracy as x goes to infinity.

Usage

loggamma(x)

Value

A convex Expression representing log(gamma(x)).

Arguments

x

An Expression or numeric value (must be positive for DCP).