Learn R Programming

orthopolynom (version 1.0-2)

polynomial.values: Create vector of polynomial values

Description

This function returns a list with $n$+1 elements containing the values of the order $k$ polynomials for orders $k$ = 0, 1,..., $n$ and for the given argument $x$.

Usage

polynomial.values( polynomials, x )

Arguments

polynomials
list of polynomial objects
x
the argument which can be any numeric object

Value

  • A list of $n$+1 polynomial objects where each element is the value of the polynomial.
  • 1Value(s) for the order 0 polynomial
  • 2Value(s) for the order 1 polynomial
  • ...
  • n+1Value(s) for the order $n$ polynomial

See Also

predict.polynomial

Examples

Run this code
p.list <- chebyshev.t.polynomials( 10, normalized=FALSE )
x <- seq( -2, 2, .01 )
y <- polynomial.values( p.list, x )

Run the code above in your browser using DataLab