# Category : Miscellaneous Language Source Code

Archive : FORTRN77.ZIP

Filename : DESOAD.FOR

C

C SUBROUTINE TO SOLVE SECOND-ORDER ORDINARY DIFFERENTIAL

C EQUATIONS Y, = F(X,Y,Y') BY ADAMS' METHOD.

C

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

LDA = 4

CALL DESORK(LDA,H,X,Y,DY,IFLAG)

U1 = YDOPRI(X(1),Y(1),DY(1),IFLAG)

U2 = YDOPRI(X(2),Y(2),DY(2),IFLAG)

U3 = YDOPRI(X(3),Y(3),DY(3),IFLAG)

U4 = YDOPRI(X(4),Y(4),DY(4),IFLAG)

DO 1 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.

DY(I+1) = DY(I)+H*(55.*U4-59.*U3+37.*U2-9.*U1)/24.

U1 = U2

U2 = U3

U3 = U4

U4 = YDOPRI(X(I+1),Y(I+1),DY(I+1),IFLAG)

1 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/