next up previous index
Next: C322 Fresnel Integrals Up: CERNLIB Previous: C320 Jacobian Elliptic

C321 Nielsen's Generalized Polylogarithm

Routine ID: C321
Author(s): K.S. KölbigLibrary: MATHLIB
Submitter: Submitted: 12.09.1985
Language: FortranRevised: 15.03.1993

Function subprograms CGPLG and WGPLG calculate the complex-valued generalized polylogarithm function

Sn,m(x) = {(-1)n+m-1(n-1)! m!} ∫01t-1lnn-1t  lnm(1-xt) dt (*)

for real arguments x and integer n and m satisfying 1≤n≤4, 1≤m≤4, n+m≤5 ; i.e., one of the functions S1,1 , S1,2 , S2,1 , S1,3 , S2,2 , S3,1 , S1,4 , S2,3 , S3,2 , S4,1 . If x≤1 , Sn,m(x) is real, and the imaginary part is set equal to zero.

The double-precision version WGPLG is available only on computers which support a COMPLEX*16 Fortran data type.

Structure:

FUNCTION subprograms
User Entry Names: CGPLG, WGPLG
Files Referenced: Unit 6
External References: MTLMTR (N002), ABEND (Z035)

Usage:

In any arithmetic expression, CGPLG(N,M,X) or WGPLG(N,M,X) has the value SN,M(X) ,

where CGPLG is of type COMPLEX, WGPLG is of type COMPLEX*16, X is of type REAL for CGPLG and of type DOUBLE PRECISION for WGPLG, and where N and M are of type INTEGER.

Method:

The method is described in Ref. 1. Note that the imaginary part of the function defined as Sn,m(x)

in Ref. 1 has the opposite sign to the imaginary part of the function defined by (*). See Ref. 2.

Accuracy:

CGPLG (except on CDC and Cray computers) has full single-precision accuracy. For most values of the argument X, WGPLG (and CGPLG on CDC and Cray computers) has an accuracy of approximately two significant digits less than the machine precision. The loss of accuracy is greater when X is very close to 1.

Error handling:

Error C321.1: N,M < 1 or N,M > 4 or N+M > 5 . The function value is set equal to zero, and a message is written on Unit 6, unless subroutine MTLSET (N002) has been called.

References:

  1. K.S. Kölbig, J.A. Mignaco and E. Remiddi, On Nielsen's generalized polylogarithms and their numerical calculation, BIT 10 (1970) 38--71.
  2. K.S. Kölbig, Nielsen's generalized polylogarithms, SIAM J. Math. Anal. 17 (1986) 1232--1258.

C322



next up previous index
Next: C322 Fresnel Integrals Up: CERNLIB Previous: C320 Jacobian Elliptic


Janne Saarela
Mon Apr 3 15:06:23 METDST 1995