GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
dlgams.f
Go to the documentation of this file.
1*DECK DLGAMS
2 SUBROUTINE dlgams (X, DLGAM, SGNGAM)
3C***BEGIN PROLOGUE DLGAMS
4C***PURPOSE Compute the logarithm of the absolute value of the Gamma
5C function.
6C***LIBRARY SLATEC (FNLIB)
7C***CATEGORY C7A
8C***TYPE DOUBLE PRECISION (ALGAMS-S, DLGAMS-D)
9C***KEYWORDS ABSOLUTE VALUE OF THE LOGARITHM OF THE GAMMA FUNCTION,
10C FNLIB, SPECIAL FUNCTIONS
11C***AUTHOR Fullerton, W., (LANL)
12C***DESCRIPTION
13C
14C DLGAMS(X,DLGAM,SGNGAM) calculates the double precision natural
15C logarithm of the absolute value of the Gamma function for
16C double precision argument X and stores the result in double
17C precision argument DLGAM.
18C
19C***REFERENCES (NONE)
20C***ROUTINES CALLED DLNGAM
21C***REVISION HISTORY (YYMMDD)
22C 770701 DATE WRITTEN
23C 890531 Changed all specific intrinsics to generic. (WRB)
24C 890531 REVISION DATE from Version 3.2
25C 891214 Prologue converted to Version 4.0 format. (BAB)
26C***END PROLOGUE DLGAMS
27 DOUBLE PRECISION X, DLGAM, SGNGAM, DLNGAM
28C***FIRST EXECUTABLE STATEMENT DLGAMS
29 dlgam = dlngam(x)
30 sgngam = 1.0d0
31 IF (x.GT.0.d0) RETURN
32C
33 int = mod(-aint(x), 2.0d0) + 0.1d0
34 IF (int.EQ.0) sgngam = -1.0d0
35C
36 RETURN
37 END
subroutine dlgams(x, dlgam, sgngam)
Definition dlgams.f:3
T mod(T x, T y)
Definition lo-mappers.h:294