4 FUNCTION polyval(a,n,x,m)
6 INTEGER :: n, m, nt, i, j
7 REAL(rprec) a(0:n-1),x(*)
8 REAL(rprec),
POINTER :: polyval(:)
14 IF(x(i).ne.0.)polyval(i)=polyval(i)+a(j)*x(i)**j
19 FUNCTION polyder(a,n,x,m)
21 INTEGER :: n, m, nt, i, j
22 REAL(rprec) a(0:n-1),x(*)
23 REAL(rprec),
POINTER :: polyder(:)
29 IF(x(i).ne.0.)polyder(i)=polyder(i)+a(j)*j*x(i)**(j-1)
34 FUNCTION polyint(a,n,x,m)
36 INTEGER :: n, m, nt, i, j
37 REAL(rprec) a(0:n-1),x(*)
38 REAL(rprec),
POINTER :: polyint(:)
45 IF(x(i).ne.0.)polyint(i)=polyint(i)+a(j)/(j+1)*x(i)**(j+1)