R/polyidl.R

# This substitutes for `poly' in IDL scripts
# See http://www.exelisvis.com/docs/POLY.html

polyidl = function(x,cc) { 
   polysum=0 
   for (i in 1:length(cc)) polysum = polysum + cc[i]*x^{i-1}
   return(polysum)
   }   

Try the astrolibR package in your browser

Any scripts or data that you put into this service are public.

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