1 subroutine r8_factor ( n, nf, fac )
3 !*****************************************************************************80
5 !! R8_FACTOR factors of an integer for real double precision computations.
15 ! Original real single precision version by Paul Swarztrauber, Dick Valent.
16 ! Real double precision version by John Burkardt.
21 ! Vectorizing the Fast Fourier Transforms,
22 ! in Parallel Computations,
23 ! edited by G. Rodrigue,
24 ! Academic Press, 1982.
27 ! Fast Fourier Transform Algorithms for Vector Computers,
28 ! Parallel Computing, pages 45-63, 1984.
32 ! Input, integer ( kind = 4 ) N, the number for which factorization and
33 ! other information is needed.
35 ! Output, integer ( kind = 4 ) NF, the number of factors.
37 ! Output, real ( kind = 8 ) FAC(*), a list of factors of N.
41 real ( kind = 8 ) fac(*)
42 integer ( kind = 4 ) j
43 integer ( kind = 4 ) n
44 integer ( kind = 4 ) nf
45 integer ( kind = 4 ) nl
46 integer ( kind = 4 ) nq
47 integer ( kind = 4 ) nr
48 integer ( kind = 4 ) ntry
60 else if ( j == 2 ) then
62 else if ( j == 3 ) then
64 else if ( j == 4 ) then
80 fac(nf) = real ( ntry, kind = 8 )