1 SUBROUTINE STRPTP
(N
,ICOUNT
,IDEG
,R
,X
)
3 C COMPUTES INITIAL POINTS FOR PATHS.
7 C N IS THE NUMBER OF (COMPLEX) VARIABLES.
9 C ICOUNT IS A COUNTER USED TO INCREMENT EACH
10 C VARIABLE AROUND THE UNIT CIRCLE SO THAT EVERY
11 C COMBINATION OF START VALUES IS CHOSEN. ICOUNT IS
12 C INITIALIZED IN POLYP.
14 C IDEG(J) IS THE DEGREE OF THE J-TH EQUATION.
16 C R(I,J) IS A (COMPLEX) ARRAY GENERATED BY SUBROUTINE INITP.
17 C R(1,J), AND R(2,J) ARE THE REAL AND IMAGINARY PARTS, RESPECTIVELY.
21 C X(I,J) IS INITIALIZED TO THE START VALUES FOR THE CURRENT PATH,
22 C WITH X(1,J) AND X(2,J) THE REAL AND IMAGINARY PARTS OF THE
23 C J-TH VARIABLE, RESPECTIVELY.
25 C SUBROUTINES: ATAN, COS, MULP, SIN.
27 C DECLARATION OF INPUT AND OUTPUT:
30 DIMENSION ICOUNT
(N
),IDEG
(N
)
31 DIMENSION R
(2,N
),X
(2,N
)
33 C DECLARATION OF VARIABLES:
35 DOUBLE PRECISION TWOPI
,ANGLE
,XXXX
39 IF(ICOUNT
(J
) .GE
. IDEG
(J
) ) THEN
49 ANGLE
= ( TWOPI
/IDEG
(J
) )*ICOUNT
(J
)
52 CALL MULP
(XXXX
,R
(1,J
),X
(1,J
))