# Category : Miscellaneous Language Source Code

Archive : FORTRN77.ZIP

Filename : NACPLY.FOR

C

C SUBROUTINE TO GENERATE A CHEBYSHEV POLYNOMIAL.

C

DIMENSION A(1), B(1), C(1)

NEND = N + 1

IF(N.GT.1) GO TO 2

A(1) = 1.

RETURN

2 DO 1 I = 1,NEND

A(I) = 0.

B(I) = 0.

C(I) = 0.

1 CONTINUE

B(1) = 1.

C(1) = 1.

DO 99 IJKL = 2,N

IJ = IJKL + 1

A(1) = 2.*B(1)

A(2) = 2.*B(2)

DO 3 I = 3,IJ

A(I) = 2.*B(I) - C(I-2)

3 CONTINUE

DO 4 I = 1,IJ

C(I) = B(I)

4 B(I) = A(I)

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