Category : Miscellaneous Language Source Code
Archive   : FORTRN77.ZIP
Filename : PLYEVL.FOR

 
Output of file : PLYEVL.FOR contained in archive : FORTRN77.ZIP
SUBROUTINE PLYEVL(A,ND,X,ANS)
C
C THIS SUBROUTINE EVALUATES ANY SINGLE VARIABLE POLYNOMIAL
C OF THE FORM A(1)*X**ND+A(2)*X**(ND-1)+... +A(ND)*X+A(ND+1)
C
DIMENSION A(1)
ANS=A(1)
IF (ND.EQ.0) RETURN
DO 20 I=1,ND
20 ANS=ANS*X+A(I+1)
RETURN
END


  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : FORTRN77.ZIP
Filename : PLYEVL.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/