# Category : Miscellaneous Language Source Code

Archive : FORTRN77.ZIP

Filename : DEFOAD.FOR

C

C SUBROUTINE TO SOLVE FIRST-ORDER ORDINARY DIFFERENTIAL

C EQUATIONS Y"=F(X,Y) BY ADAM'S METHOD.

C

DIMENSION X(1), Y(1), DY(1)

DY(1) = YPRIME(X(1),Y(1),IFLAG)

LCLEGG = 4

CALL DEFORK(LCLEGG,H,X,Y,DY,IFLAG)

DO 2 I = 4,ITER-1

Y(I+1)=Y(I)+H*(55.*DY(I)-59.*DY(I-1)+37.*DY(I-2)-9.*DY(I-3))/24.

XN = X(I+1)

YN = Y(I+1)

DY(I+1) = YPRIME(XN,YN,IFLAG)

2 CONTINUE

RETURN

END

Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/