# Category : Miscellaneous Language Source Code

Archive : FORTRN77.ZIP

Filename : DETOHA.FOR

C

C SUBROUTINE TO SOLVE THIRD-ORDER ORDINARY DIFFERENTIAL

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

C

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

D(1) = 0.

D(2) = 0.

D(3) = 0.

D(4) = 0.

LDA = 4

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

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

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

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

PMC1 = 0.

PMC2 = 0.

PMC3 = 0.

DO 1 I = 4,ITER-1

PPP = DDY(I-3)+(4./3.)*H*(2.*DDDY4-DDDY3+2.*DDDY2)

PMM = PPP-(112./121.)*PMC1

PP = DY(I-3)+(4./3.)*H*(2.*DDY(I)-DDY(I-1)+2.*DDY(I-2))

PM = PP-(112./121.)*PMC2

P = Y(I-3)+(4./3.)*H*(2.*DY(I)-DY(I-1)+2.*DY(I-2))

TM = P-(112./121.)*PMC3

PMMM = YTRPRI(X(I+1),TM,PM,PMM,IFLAG)

CCC = (9.*DDY(I)-DDY(I-2)+3.*H*(PMMM+2.*DDDY4-DDDY3))/8.

PMC1 = PPP-CCC

DDY(I+1) = CCC +(9./121.)*PMC1

CC = (9.*DY(I)-DY(I-2)+3.*H*(DDY(I+1)+2.*DDY(I)-DDY(I-1)))/8.

PMC2 = PP - CC

DY(I+1) = CC+(9./121.)*PMC2

C = (9.*Y(I)-Y(I-2)+3.*H*(DY(I+1)+2.*DY(I)-DY(I-1)))/8.

PMC3 = P-C

Y(I+1) = C+(9./121.)*PMC3

DDDY2 = DDDY3

DDDY3 = DDDY4

DDDY4 = YTRPRI(X(I+1),Y(I+1),DY(I+1),DDY(I+1),IFLAG)

D(I+1) = C-P

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/