polyidl {astrolibR}R Documentation

Calculate polynomial

Description

Calculate polynomial following IDL's poly.pro function

Usage

polyidl(x,cc)

Arguments

x

scalar, vector or array

cc

vector of polynomial coefficients for polynomial of degree length(cc)-1

Value

This function returns the quantity
cc[1] + cc[2]*x + cc[3]*x^2 + cc[4]*x^3 + ...

Author(s)

Eric Feigelson July 2014

References

See http://www.exelisvis.com/docs/POLY.html

Examples

polyidl(2:4, 3:5)  # returns 31,60,99

[Package astrolibR version 0.1 Index]