Name: POLYN Purpose: POLYN computes the value of an N-component polynomial DPOLYN computes the partial derivatives of that polynomial Files: polyn.dc2,polyn.shl Author: Peter Roelfsema Call: PX=POLYN(X,PAR,NPAR) Input parameters: X -R -running coordinate. PAR -R -array defined as follows: PAR(0:NPAR) that contains the parameters for the polynomial: PAR(n)-polynomial coefficient for X**n. NPAR -I -degree of the polynomial. Use: POLYN gives the value of a multi-component polynomial. Note that the polynomial is defined as the following summation: PX = 0 FOR N=0 TO NPAR ( PX = PX + PAR(N) * X**N ) POLYN does not check for floating overflows in X**N, you will have to worry about that yourself. Update History: 8- 7-85-PRR.-original document 16- 6-86-PRR.-converted for VAX8600. 10- 9-92-PRR.-converted to new GIPSY