# Category : Miscellaneous Language Source Code

Archive : FORTRN77.ZIP

Filename : DEFOHA.FOR

C

C SUBROUTINE TO SOLVE FIRST-ORDER ORDINARY DIFFERENTIAL

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

C

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

ERR(1) = 0.

ERR(2) = 0.

ERR(3) = 0.

ERR(4) = 0.

LDA = 4

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

PMC = 0.0

DO 1000 N = 4,ITER-1

PNPI = Y(N-3)+(4./3.)*H*(2.*DY(N)-DY(N-1)+2.*DY(N-2))

PMNI = PNPI-(112./121.)*PMC

PMNPI = YPRIME(X(N+1),PMNI,IFLAG)

CNPI = (1./8.)*(9.*Y(N)-Y(N-2)+3.*H*(PMNPI+2.*DY(N)-DY(N-1)))

Y(N+1) = CNPI+(9./121.)*(PNPI-CNPI)

DY(N+1) = YPRIME(X(N+1),Y(N+1),IFLAG)

PMC = PNPI-CNPI

ERR(N+1) = CNPI-PNPI

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