loggamma: Elementwise log of the gamma function

View source: R/074_atoms_elementwise_loggamma.R

loggammaR Documentation

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)

Arguments

x

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

Value

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


CVXR documentation built on March 6, 2026, 9:10 a.m.