[R] returns the value of a polynomial of degree n evaluated at x.
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Aug 9 09:31:11 CEST 2004
See package polynom on CRAN.
On Mon, 9 Aug 2004, McClatchie, Sam (PIRSA-SARDI) wrote:
> Is there a function in R that is similar to polyval in matlab? (y =
> polyval(p,x) returns the value of a polynomial of degree n evaluated at x.
> The input argument p is a vector of length n+1 whose elements are the
> coefficients in descending powers of the polynomial to be evaluated).
> I have possibly missed it in the R help files, so please excuse me if I
> have. "Polynomial evaluation" yielded no result in a search of help, and the
> functions poly() and locpoly() don't seem to be what I am after.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help