Calculates polynomial value for given coefficients
function polyval input Real c[:]; input Real x; output Real y; end polyval;