# Category : Miscellaneous Language Source Code

Archive : FORTRN77.ZIP

Filename : DESOHA.FOR

C

C SUBROUTINE TO SOLVE SECOND-ORDER ORDINARY DIFFERENTIAL

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

C

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

D(1) = 0.

D(2) = 0.

D(3) = 0.

D(4) = 0.

LDA = 4

CALL DESORK(LDA,H,X,Y,DY,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)

PMC1 = 0.

PMC2 = 0.

DO 1 I = 4,ITER-1

PP = DY(I-3)+(4./3.)*H*(2.*U4-U3+2.*U2)

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

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

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

PPM = YDOPRI(X(I+1),TM,PM,IFLAG)

CP = (9.*DY(I)-DY(I-2) +3.*H*(PPM+2.*U4-U3))/8.

DY(I+1) = CP+(9./121.)*(PP-CP)

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

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

PMC1 = PP-CP

PMC2 = P-C

U2 = U3

U3 = U4

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