I have been asked to use the cephes math library to write a C program which will generate the values of the zeroth order Bessel function [j0(x)] for 50 values of x evenly spaced in the interval 0 < x < 10. But I am totally confuse about this question. What is that mean? Please help. Thanks !
Oic, I finally know what it means now. But I would like to know where do you get the information on how to use the bessel function?? Cause I have try to read the double.doc file in the cephes's doc directory, but no clue. Anway, Thanks very much !!
0
Featured Post
In this whiteboard video, Professor Wool highlights the challenges, benefits and trade-offs of utilizing zero-touch automation for security policy change management. Watch and Learn!
Then you have to divide the interval (0,10) in 50 steps
int n=50;
double a=0,b=10,x;
for (i=1;i<=n;i++) {
x=(b-a)*i/(n+1)+a;
printf ("Bessel for x=%f:%f\n",x,j0(x));
}