#include #include #include "nr.h" using namespace std; // Driver for routine pearsn int main(void) { const int N=10; const DP dose_d[N]= {56.1,64.1,70.0,66.6,82.0,91.3,90.0,99.7,115.3,110.0}; const DP spore_d[N]= {0.11,0.40,0.37,0.48,0.75,0.66,0.71,1.20,1.01,0.95}; int i; DP prob,r,z; Vec_DP dose(dose_d,N), spore(spore_d,N); cout << endl << "Effect of Gamma Rays on Man-in-the-Moon Marigolds"; cout << endl; cout << setw(16) << "Count Rate (cpm)"; cout << setw(24) << "Pollen Index" << endl; cout << fixed << setprecision(2); for (i=0;i