One must be careful to avoid off-by-one errors. In C idiom, the
function evaluates the polynomial
$$c[0]+c[1]x+c[2]x^2+\ldots+c[\mathrm{len}-1]x^{\mathrm{len}-1}$$
where len is the second argument of GSL function
gsl_poly_eval()
.
The R idiom would be
$$c[1]+c[2]x+c[3]x^2+\ldots+c[\mathrm{len}]x^{\mathrm{len}-1}.$$
This section is work-in-progress and more will be added when I have
the time/need for the other functions here.