#include #include #include #include "nr.h" using namespace std; // Driver for routine gaulag DP func(const DP x) { return NR::bessj0(x); } int main(void) { int i,n; DP alf=1.0,checkw,checkx,xx; for (;;) { cout << "Enter N (or 0 to end): "; cin >> n; cout << endl; if (n < 1) break; Vec_DP x(n),w(n); NR::gaulag(x,w,alf); cout << " #" << setw(13) << "x(i)" << setw(15) << "w(i)" << endl; cout << fixed << setprecision(6); for (i=0;i