Output of file : DETOMA.FOR contained in archive : FORTRN77.ZIP
SUBROUTINE DETOMA(ITER,H,X,Y,DY,DDY,IFLAG,D)
C
C SUBROUTINE TO SOLVE THIRD-ORDER ORDINARY DIFFERENTIAL
C EQUATIONS Y''' = F(X,Y,Y',Y'') BY MODIFIED ADAMS' METHOD.
C
DIMENSION X(1), Y(1), DY(1), DDY(1), D(1)
D(1) = 0.
D(2) = 0.
D(3) = 0.
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
DDYI = DDY(I)+H*(55.*U4-59.*U3+37.*U2-9.*U1)/24.
DYI=DY(I)+H*(55.*DDY(I)-59.*DDY(I-1)+37.*DDY(I-2)-9.*DDY(I-3))/24.
YI = 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),YI,DYI,DDYI,IFLAG)
DDY(I+1) = DDY(I)+H*(9.*U4+19.*U3-5.*U2+U1)/24.
DY(I+1)=DY(I)+H*(9.*DDY(I+1)+19.*DDY(I)-5.*DDY(I-1)+DDY(I-2))/24.
Y(I+1) =Y(I)+H*(9.*DY(I+1)+19.*DY(I)-5.*DY(I-1)+DY(I-2))/24.
U4 = YTRPRI(X(I+1),Y(I+1),DY(I+1),DDY(I+1),IFLAG)
D(I+1) = -19.*(Y(I+1)-YI)/270.
1 CONTINUE
RETURN
END


### 3 Responses to “Category : Miscellaneous Language Source CodeArchive   : FORTRN77.ZIPFilename : DETOMA.FOR”

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

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

3. 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/