// Calculate function
f=f1=f2=0;
for (j=0;j<N;j++) {
f += c[j][0]*bess.jn(5,x[j]);
f1 += c[j][1]*bess.jn(5,x[j]);
f2 += c[j][2]*bess.jn(5,x[j]);
}
// System.out.printf(y);
// System.out.printf(abs(bess.jn(5,y)-f) << " ";
// System.out.printf(abs(0.5*(bess.jn(4,y)-bess.jn(6,y))-f1) << " ";
// System.out.printf(abs(0.25*(bess.jn(3,y)-2.0*bess.jn(5,y)+bess.jn(7,y))-f2));