[UP]


Manual Reference Pages  - log_gamma (3)

NAME

log_gamma(3f) - [FORTRAN:INTRINSIC:MATHEMATICS] Logarithm of the Gamma function

SYNTAX

x = log_gamma(x)

DESCRIPTION

log_gamma(x) computes the natural logarithm of the absolute value of the [[Gamma function]].

ARGUMENTS

X Shall be of type REAL and neither zero nor a negative integer.

RETURN VALUE

The return value is of type REAL of the same kind as X.

EXAMPLE

Sample program:

   program demo_log_gamma
   implicit none
     real :: x = 1.0
     x = log_gamma(x) ! returns 0.0
   end program demo_log_gamma

STANDARD

[[Fortran 2008]] and later

CLASS

[[Elemental function]]

SEE ALSO

Gamma function: gamma(3)


log_gamma (3) March 11, 2021
Generated by manServer 1.08 from 7d280413-41b3-467f-b945-b31647b86ac4 using man macros.