POLYVL(3)

SYNOPSIS
SUBROUTINE POLYVL (NDER, XX, YFIT, YP, N, X, C, WORK, IERR)

NAME
polyvl - Calculate the value of a polynomial and its first NDER derivatives where the polynomial was produced by a previous call to POLINT.

LIBRARY
SLATEC

CATEGORY
E3

TYPE
SINGLE PRECISION (POLYVL-S, DPOLVL-D)

KEYWORDS
POLYNOMIAL EVALUATION

AUTHOR
Huddleston, R. E., (SNLL)

DESCRIPTION
Written by Robert E. Huddleston, Sandia Laboratories, Livermore Abstract - Subroutine POLYVL calculates the value of the polynomial and its first NDER derivatives where the polynomial was produced by a previous call to POLINT. The variable N and the arrays X and C must not be altered between the call to POLINT and the call to POLYVL. ****** Dimensioning Information ******* YP must be dimensioned by at least NDER X must be dimensioned by at least N (see the abstract ) C must be dimensioned by at least N (see the abstract ) WORK must be dimensioned by at least 2*N if NDER is .GT. 0. *** Note *** If NDER=0, neither YP nor WORK need to be dimensioned variables. If NDER=1, YP does not need to be a dimensioned variable. ***** Input parameters NDER - the number of derivatives to be evaluated XX - the argument at which the polynomial and its derivatives are to be evaluated. N - ***** * N, X, and C must not be altered between the call X - * to POLINT and the call to POLYVL. C - ***** ***** Output Parameters YFIT - the value of the polynomial at XX YP - the derivatives of the polynomial at XX. The derivative of order J at XX is stored in YP(J) , J = 1,...,NDER. IERR - Output error flag with the following possible values. = 1 indicates normal execution ***** Storage Parameters WORK = this is an array to provide internal working storage for POLYVL. It must be dimensioned by at least 2*N if NDER is variable.

REFERENCES
L. F. Shampine, S. M. Davenport and R. E. Huddleston, Curve fitting by polynomials in one variable, Report SLA-74-0270, Sandia Laboratories, June 1974.

ROUTINES CALLED
(NONE)

REVISION HISTORY (YYMMDD)
740601 DATE WRITTEN
890531 Changed all specific intrinsics to generic. (WRB)
890531 REVISION DATE from Version 3.2
891214 Prologue converted to Version 4.0 format. (BAB)
920501 Reformatted the REFERENCES section. (WRB)