cgama Subroutine

public subroutine cgama(x, y, kf, gr, gi)

************80

! CGAMA computes the Gamma function for complex argument.

Discussion:

This procedcure computes the gamma function Γ(z) or ln(z)]
for a complex argument

Licensing:

This routine is copyrighted by Shanjie Zhang and Jianming Jin.  However, 
they give permission to incorporate this routine into a user program 
provided that the copyright is acknowledged.

Modified:

26 July 2012

Author:

Shanjie Zhang, Jianming Jin

Reference:

Shanjie Zhang, Jianming Jin,
Computation of Special Functions,
Wiley, 1996,
ISBN: 0-471-11963-6,
LC: QA351.C45.

Parameters:

Input, real ( kind = 8 ) X, Y, the real and imaginary parts of 
the argument Z.

Input, integer ( kind = 4 ) KF, the function code.
0 for ln(z)]
1 for Γ(z)

Output, real ( kind = 8 ) GR, GI, the real and imaginary parts of
the selected function.

Arguments

Type IntentOptional Attributes Name
real(kind=8) :: x
real(kind=8) :: y
integer(kind=4) :: kf
real(kind=8) :: gr
real(kind=8) :: gi

Called by

proc~~cgama~~CalledByGraph proc~cgama cgama proc~pbwa pbwa proc~pbwa->proc~cgama