1 subroutine r4_tables ( ido, ip, wa )
3 !*****************************************************************************80
5 !! R4_TABLES computes trigonometric tables, real single precision arithmetic.
8 ! Copyright (C) 1995-2004, Scientific Computing Division,
9 ! University Corporation for Atmospheric Research
23 ! Vectorizing the Fast Fourier Transforms,
24 ! in Parallel Computations,
25 ! edited by G. Rodrigue,
26 ! Academic Press, 1982.
29 ! Fast Fourier Transform Algorithms for Vector Computers,
30 ! Parallel Computing, pages 45-63, 1984.
36 integer ( kind = 4 ) ido
37 integer ( kind = 4 ) ip
39 real ( kind = 4 ) arg1
40 real ( kind = 4 ) arg2
41 real ( kind = 4 ) arg3
42 real ( kind = 4 ) arg4
43 real ( kind = 4 ) argz
44 integer ( kind = 4 ) i
45 integer ( kind = 4 ) j
47 real ( kind = 4 ) wa(ido,ip-1,2)
49 tpi = 8.0E+00 * atan ( 1.0E+00 )
50 argz = tpi / real ( ip, kind = 4 )
51 arg1 = tpi / real ( ido * ip, kind = 4 )
55 arg2 = real ( j - 1, kind = 4 ) * arg1
58 arg3 = real ( i - 1, kind = 4 ) * arg2
59 wa(i,j-1,1) = cos ( arg3 )
60 wa(i,j-1,2) = sin ( arg3 )
64 arg4 = real ( j - 1, kind = 4 ) * argz
65 wa(1,j-1,1) = cos ( arg4 )
66 wa(1,j-1,2) = sin ( arg4 )