#include "header.h" void MakeTable(int NMin,int NMax,double XMin,double XMax,double dx,double (*FunctionPointer) (int, double)) { int i,j; for(j=0;j<=(floor((XMax-XMin)/dx));j++) //floor((XMax-XMin)/dx) is the table height { for(i=0;i<=NMax-NMin;i++) //NMax-NMin is the table width { printf("%.5g \t",FunctionPointer(NMin+i,XMin+j*dx)); //printf the vales of the bessel function using the function pointer. } printf("\n"); } }