Rename *ll* and *ul* to ll and ul in in-interval
[maxima.git] / share / fftpack5 / fortran / r1f5kb.f
blobcc775a8648ea3eb67fb7b47ad208156f1f140665
1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
3 C FFTPACK 5.0
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
7 C $Id$
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 SUBROUTINE R1F5KB (IDO,L1,CC,IN1,CH,IN2,
12 1 WA1,WA2,WA3,WA4)
13 REAL CC(IN1,IDO,5,L1) ,CH(IN2,IDO,L1,5),
14 1 WA1(IDO) ,WA2(IDO) ,WA3(IDO) ,WA4(IDO)
16 ARG=2.*4.*ATAN(1.0)/5.
17 TR11=COS(ARG)
18 TI11=SIN(ARG)
19 TR12=COS(2.*ARG)
20 TI12=SIN(2.*ARG)
21 DO 101 K=1,L1
22 CH(1,1,K,1) = CC(1,1,1,K)+2.*CC(1,IDO,2,K)+2.*CC(1,IDO,4,K)
23 CH(1,1,K,2) = (CC(1,1,1,K)+TR11*2.*CC(1,IDO,2,K)
24 1 +TR12*2.*CC(1,IDO,4,K))-(TI11*2.*CC(1,1,3,K)
25 1 +TI12*2.*CC(1,1,5,K))
26 CH(1,1,K,3) = (CC(1,1,1,K)+TR12*2.*CC(1,IDO,2,K)
27 1 +TR11*2.*CC(1,IDO,4,K))-(TI12*2.*CC(1,1,3,K)
28 1 -TI11*2.*CC(1,1,5,K))
29 CH(1,1,K,4) = (CC(1,1,1,K)+TR12*2.*CC(1,IDO,2,K)
30 1 +TR11*2.*CC(1,IDO,4,K))+(TI12*2.*CC(1,1,3,K)
31 1 -TI11*2.*CC(1,1,5,K))
32 CH(1,1,K,5) = (CC(1,1,1,K)+TR11*2.*CC(1,IDO,2,K)
33 1 +TR12*2.*CC(1,IDO,4,K))+(TI11*2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2,K))
110 1 +TR12*(CC(1,I-1,5,K)+CC(1,IC-1,4,K)))+(TI11*(CC(1,I,3,K)
111 1 +CC(1,IC,2,K))+TI12*(CC(1,I,5,K)+CC(1,IC,4,K))))
112 102 CONTINUE
113 103 CONTINUE
114 RETURN