- #1
petra
- 8
- 0
Fortran:
100 VR=D+R
LR=R
VS = VR - (1-q)*F
LS = LR +f*Q
loop = loop +1
if (loop.GT.50) stop
x(1) = .....
CALL
for i=2 to nf
x(i) = .....
call
x(nf+1) = (vr*y(nf)+b*xb...)
if (x(nf+1).LT.x(nf)) go to 30
call
for i=nf+2 to nt
x(i)=(vr*y(n-1)...)
if ( x(i).GT.Xd) goto 40
call
next i
if(abs(y(nt)-xd).LT.0,0001) go to 90
if (y(nt)-xd) 30,30,40
30 if (flagp.lt.0.) dr=dr/2
r=r+dr
flagm = -1
go to 100
40 if (flagm.lt.0.) dr=dr/2
r=r-dr
flagp = -1
goto 100
90 write (6,91)
Last edited by a moderator: