C336: Sine and Cosine Integrals

Author(s): K.S. Kölbig Library: MATHLIB
Submitter: Submitted: 07.12.1970
Language: Fortran Revised: 01.12.1994

Function subprograms RSININ, RCOSIN and DSININ, DCOSIN calculate the sine and cosine integrals

displaymath105

for real arguments x, where tex2html_wrap_inline109 is Euler's constant.

On CDC and Cray computers, the double-precision versions DSININ and DCOSIN are not available.

Structure:

FUNCTION subprograms
User Entry Names: RSININ, RCOSIN, DSININ, DCOSIN
Obsolete User Entry Names: SININT tex2html_wrap_inline111 RSININ, COSINT tex2html_wrap_inline113 RCOSIN
Files Referenced: Unit 6
External References: MTLMTR, ABEND

Usage:

In any arithmetic expression,

RSININ(X) or DSININ(X) has the value Si(X),
RCOSIN(X) or DCOSIN(X) has the value Ci(X),

where RSININ and RCOSIN are of type REAL, DSININ and DCOSIN are of type DOUBLE PRECISION, and X has the same type as the function name.

Method:

Approximation by truncated Chebyshev series.

Accuracy:

RSININ and RCOSIN (except on CDC and Cray computers) have full single-precision accuracy. For most values of the argument X, DSININ, DCOSIN (and RSININ, RCOSIN on CDC and Cray computers) have an accuracy of approximately one significant digit less than the machine precision.

Error handling:

Error C336.1: tex2html_wrap_inline115 for RCOSIN or DCOSIN. 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. Y.L. Luke, The special functions and their approximations, v.II, (Academic Press, New York l969) 325-326
tex2html_wrap_inline117

Michel Goossens Tue Jun 4 22:23:49 METDST 1996