B105: Value of a Polynomial

Author(s): K.S. Kölbig Library: MATHLIB
Submitter: Submitted: 01.12.1994
Language: Fortran Revised:

Function subprograms RPLNML, DPLNML calculate the value of the polynomial

displaymath84

or

displaymath86

for real values x, whereas function subprograms CPLNML, WPLNML calculate the value of the polynomial

displaymath90

or

displaymath92

for complex values z.

On CDC and Cray computers, the double-precision versions DPLNML and WPLNML are not available.

Structure:

FUNCTION subprograms
User Entry Names: RPLNML, DPLNML, CPLNML, WPLNML

Usage:

For tex2html_wrap_inline96 (type REAL), tex2html_wrap_inline98 (type DOUBLE PRECISION),

    tPLNML(X,N,A,MODE)
has, in any arithmetic expression, the value tex2html_wrap_inline100 or tex2html_wrap_inline102 ;

for tex2html_wrap_inline104 (type COMPLEX), tex2html_wrap_inline106 (type COMPLEX*16),

    tPLNML(Z,N,C,MODE)
has, in any arithmetic expression, the value tex2html_wrap_inline108 or tex2html_wrap_inline110 .
X,Z
(type according to t) Arguments x or z, respectively.
N
(INTEGER) Degree n of tex2html_wrap_inline118 or tex2html_wrap_inline120 .
A,C
(type according to t) One-dimensional arrays of dimension (0:d) where tex2html_wrap_inline122 , containing the coefficients tex2html_wrap_inline124 or tex2html_wrap_inline126 in A(k) or C(k), respectively.
MODE
(INTEGER) Either +1 for tex2html_wrap_inline128 or -1 for tex2html_wrap_inline130 .

Method:

The Horner scheme is used.

Notes:

A reference with tex2html_wrap_inline132 or MODE different from +1 or -1 returns the value zero.
tex2html_wrap_inline134


Michel Goossens Fri Jun 7 08:21:33 METDST 1996