next up previous index
Next: C323 Fermi-Dirac Function Up: CERNLIB Previous: C321 Nielsen's Generalized

C322 Fresnel Integrals

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

Function subprograms RFRSIN, RFRCOS and DFRSIN, DFRCOS calculate the Fresnel integrals

S(x) 0x{sintt}dt (x ≥0), S(-x) = -S(x),

C(x) 0x{costt}dt (x ≥0), C(-x) = -C(x),

for real arguments x.

On CDC and Cray computers, the double-precision versions DFRSIN, DFRCOS are not available.

Structure:

FUNCTION subprograms
User Entry Names: RFRSIN, RFRCOS, DFRSIN, DFRCOS
Obsolete User Entry Names: FRSIN RFRSIN, FRCOS RFRCOS

Usage:

In any arithmetic expression, RFRSIN(X) or DFRSIN(X) has the value S(X) ,
RFRCOS(X) or DFRCOS(X) has the value C(X) ,

where RFRSIN, RFRCOS are of type REAL, DFRSIN, DFRCOS are of type DOUBLE PRECISION, and X has the same type as the function name.

Method:

Approximation by truncated Chebyshev series.

Accuracy:

RFRSIN and RFRCOS (except on CDC and Cray computers) have full single-precision accuracy. For most values of the argument X, DFRSIN and DFRCOS (and RFRSIN and RFRCOS on CDC and Cray computers) have an accuracy of approximately one significant digit less than the machine precision.

References:

  1. Y.L. Luke, The special functions and their approximations, v. II, (Academic Press New York, 1969) 328--329.

C323


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