1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 SUBROUTINE SINTF1
(N
,INC
,X
,WSAVE
,XH
,WORK
,IER
)
12 REAL X
(INC
,*) ,WSAVE
(*) ,XH
(*)
16 102 SSQRT3
= 1./SQRT
(3.)
17 XHOLD
= SSQRT3*
(X
(1,1)+X
(1,2))
18 X
(1,2) = SSQRT3*
(X
(1,1)-X
(1,2))
26 T2
= WSAVE
(K
)*(X
(1,K
)+X
(1,KC
))
31 IF (MODN
.EQ
. 0) GO TO 124
32 XH
(NS2
+2) = 4.*X
(1,NS2
+1)
35 LNSV
= NP1
+ INT
(LOG
(REAL(NP1
))/LOG
(2.)) + 4
38 CALL RFFT1F
(NP1
,1,XH
,LNXH
,WSAVE
(NS2
+1),LNSV
,WORK
,
42 CALL XERFFT
('SINTF1',-5)
46 IF(MOD
(NP1
,2) .NE
. 0) GO TO 30
47 XH
(NP1
) = XH
(NP1
)+XH
(NP1
)
48 30 SFNP1
= 1./FLOAT
(NP1
)
53 DSUM
= DSUM
+.5*XH
(I
-1)
56 IF (MODN
.NE
. 0) GO TO 200