lgammat
Lgammat is a mathematical function that is closely related to the gamma function, denoted as Γ(x). The gamma function is a generalization of the factorial function, which is defined for complex numbers and real numbers greater than zero. The lgammat function, on the other hand, is defined as the natural logarithm of the absolute value of the gamma function, i.e., lgammat(x) = ln|Γ(x)|. This function is particularly useful in statistical analysis and numerical computations, where the gamma function can take on very large or very small values, making it difficult to work with directly. By taking the logarithm, the lgammat function provides a more manageable range of values. The lgammat function is also known as the log-gamma function or the log of the gamma function. It is implemented in many mathematical software packages and programming languages, such as Python's SciPy library and R's stats package. The lgammat function is defined for all complex numbers except for the non-positive integers, where the gamma function has poles.