# Category : Miscellaneous Language Source Code

Archive : FORTRN77.ZIP

Filename : DETOAD.FOR

C

C SUBROUTINE TO SOLVE THIRD-ORDER ORDINARY DIFFERENTIAL

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

C

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

LDA = 4

CALL DETORK(LDA,H,X,Y,DY,DDY,IFLAG)

U1 = YTRPRI(X(1),Y(1),DY(1),DDY(1),IFLAG)

U2 = YTRPRI(X(2),Y(2),DY(2),DDY(2),IFLAG)

U3 = YTRPRI(X(3),Y(3),DY(3),DDY(3),IFLAG)

U4 = YTRPRI(X(4),Y(4),DY(4),DDY(4),IFLAG)

DO 1 I = 4,ITER-1

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

DY(I+1) = DY(I)+H*(55.*DDY(I)-59.*DDY(I-1)+37.*DDY(I-2)-9.*

&DDY(I-3))/24.

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

U1 = U2

U2 = U3

U3 = U4

U4 = YTRPRI(X(I+1),Y(I+1),DY(I+1),DDY(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/