polyidl: Calculate polynomial

Description Usage Arguments Value Author(s) References Examples

Description

Calculate polynomial following IDL's poly.pro function

Usage

1
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

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

Example output

[1] 31 60 99

astrolibR documentation built on May 2, 2019, 3:26 a.m.