Changeset 3344 in Sophya for trunk/Cosmo/SimLSS/cmvdefsurv.cc
- Timestamp:
- Oct 9, 2007, 10:43:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvdefsurv.cc
r3343 r3344 299 299 cout<<"mstar*sch(mstar) = "<<sch(mstar)<<" Msol/Mpc^3/Msol"<<endl; 300 300 int npt = 10000; 301 double lnx1=log10(1 e+6), lnx2=log10(1e+14), dlnx=(lnx2-lnx1)/npt;301 double lnx1=log10(1.e+6), lnx2=log10(1.e+13), dlnx=(lnx2-lnx1)/npt; 302 302 double masshimpc3 = IntegrateFuncLog(sch,lnx1,lnx2,0.001,dlnx,10.*dlnx,6); 303 303 cout<<"Mass density: "<<masshimpc3<<" Msol/Mpc^3"<<endl; … … 312 312 cout<<"\nsch(mstar) = "<<sch(mstar)<<" /Mpc^3/Msol"<<endl; 313 313 cout<<"Galaxy number density:"<<endl; 314 for(double x=lnx1; x< 10.5; x+=1.) {314 for(double x=lnx1; x<lnx2-0.5; x+=1.) { 315 315 double n = IntegrateFuncLog(sch,x,lnx2,0.001,dlnx,10.*dlnx,6); 316 316 cout<<" m>"<<x<<" Msol: "<<n<<" /Mpc^3, "<<n*dvol<<" /pixel, "
Note:
See TracChangeset
for help on using the changeset viewer.