This function evaluates the sine integral.
SI — Function value. (Output)
X — Argument for which the function value is desired. (Input)
Generic: SI (X)
Specific: The specific interface names are S_SI and D_SI.
Single: SI (X)
Double: The double precision function name is DSI.
The sine integral, Si(x), is defined to be
If
the answer is less accurate than half precision, while for |x| > 1 /ε, the answer has no precision. Here, ε = AMACH(4) is the machine precision.
In this example, Si(1.25) is computed and printed.
USE SI_INT
USE UMACH_INT
IMPLICIT NONE
! Declare variables
INTEGER NOUT
REAL VALUE, X
! Compute
X = 1.25
VALUE = SI(X)
! Print the results
CALL UMACH (2, NOUT)
WRITE (NOUT,99999) X, VALUE
99999 FORMAT (' SI(', F6.3, ') = ', F6.3)
END
SI( 1.250) = 1.146
PHONE: 713.784.3131 FAX:713.781.9260 |