This function evaluates the gamma probability density function.
GAMPR — Function value, the value of the probability density function. (Output)
X — Argument for which the gamma probability density function is to be evaluated. (Input)
A — The shape
parameter of the gamma distribution. (Input)
This parameter must
be positive.
Generic: GAMPR (X, A)
Specific: The specific interface names are S_GAMPR and D_GAMPR.
Single: GAMPR (X, A)
Double: The double precision name is DGAMPR.
The function GAMPR evaluates the gamma probability density function, defined as
In this example, we evaluate the probability function at X = 4.0, A = 5.0.
USE
UMACH_INT
USE
GAMPR_INT
IMPLICIT NONE
INTEGER NOUT
REAL X, A, PR
CALL UMACH(2, NOUT)
X = 4.0
A = 5.0
PR = GAMPR(X, A)
WRITE (NOUT, 99999) X, A, PR
99999 FORMAT (' GAMPR(', F4.2, ', ', F4.2, ') = ', F6.4)
END
GAMPR(4.00, 5.00) = 0.1954
PHONE: 713.784.3131 FAX:713.781.9260 |