#include #include #include #include "nr.h" using namespace std; // Driver for routine kendl2 int main(void) { const int NDAT=1000,IP=8,JP=8; const string txt[8]= {"000","001","010","011","100","101","110","111"}; int ifunc,k,l,m,n,twoton; unsigned long iseed; DP prob,tau,z; Mat_DP tab(IP,JP); // Look for 'ones-after-zeros' in IRBIT1 and IRBIT2 sequences cout << "Are ones followed by zeros and vice-versa?" << endl; cout << fixed << setprecision(6); for (ifunc=0;ifunc<2;ifunc++) { iseed=2468; if (ifunc == 0) cout << "test of irbit1:" << endl; else cout << "test of irbit2:" << endl; for (k=0;k