#include #define sqr(x) ((x)*(x)) double BesselJ0(double x) { double temp=1., xn=1.; long n, Nmax; Nmax=int(floor(2.*x)+4); for (n=1;n