next up previous index
Next: C327 Modified Bessel Up: CERNLIB Previous: C324 Arctangent integral

C326 Clausen Function

Routine ID: C326
Author(s): K.S. KölbigLibrary: MATHLIB
Submitter: Submitted: 01.12.1994
Language: FortranRevised:

Function subprograms RCLAUS and DCLAUS calculate the Clausen function

Cl2(x) = - ∫0xln|2 sin{t2}| dt = ∑k=1&inf;{sinkxk2}

for real arguments x.

On CDC and Cray computers, the double-precision version DCLAUS is not available.

Structure:

FUNCTION subprograms
User Entry Names: RCLAUS, DCLAUS

Usage:

In any arithmetic expression, RCLAUS(X) or DCLAUS(X) has the value Cl2(X) ,

where RCLAUS is of type REAL, DCLAUS is of type DOUBLE PRECISION, and X has the same type as the function name.

Method:

For 0 ≤x ≤π , the function is approximated by truncated Chebyshev series. For x outside this range, the relations Cl2(π+x)=-Cl2(π-x) and Cl2(2nπ±x)=±Cl2(x) are used.

Accuracy:

RCLAUS (except on CDC and Cray computers) has full single-precision accuracy in the interval 0 ≤x ≤2π . For most values of the argument X∈[0,2π] , DCLAUS (and RCLAUS on CDC and Cray computers) has an accuracy of approximately one significant digit less than the machine precision. Accuracy is lost near the zero of Cl2(x) at x=π

and for large values of |x|.

C327


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