3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167 LOGICAL RESET
3168
3169 INTEGER I, IC, J, MI, MJ
3170
3171 SAVE i, ic, j, mi, mj
3172
3173 INTRINSIC cmplx
3174
3175 IF( reset )THEN
3176
3177 mi = 891
3178 mj = 457
3179 i = 7
3180 j = 7
3181 ic = 0
3182 reset = .false.
3183 END IF
3184
3185
3186
3187
3188
3189
3190
3191
3192 ic = ic + 1
3193 10 i = i*mi
3194 j = j*mj
3195 i = i - 1000*( i/1000 )
3196 j = j - 1000*( j/1000 )
3197 IF( ic.GE.5 )THEN
3198 ic = 0
3199 GO TO 10
3200 END IF
3201 cbeg = cmplx( ( i - 500 )/1001.0, ( j - 500 )/1001.0 )
3202 RETURN
3203
3204
3205
complex function cbeg(reset)