Macaulay2 » Documentation
Packages » Python » PythonObject » lngamma(PythonObject)
next | previous | forward | backward | up | index | toc

lngamma(PythonObject) -- natural logarithm of the gamma function of a python object

Description

This calls Python's built-in math.lgamma function, which computes the natural logarithm of the gamma function of x.

i1 : lngamma toPython 5

o1 = 3.178053830347945

o1 : PythonObject of class float
i2 : log Gamma toPython 5

o2 = 3.1780538303479458

o2 : PythonObject of class float

See also

Ways to use this method:


The source of this document is in Python/doc/special.m2:93:0.